(function(b){var b=jQuery,d;if(d=b.browser.msie)if(d="XDomainRequest"in window)if(d=!("__jquery_xdomain__"in b)){d=b.fn.cu3erOptions;if("undefined"==typeof d.vars.xml_location)d=!0;else{var c=window.location,f=document.createElement("a");f.href=d.vars.xml_location;d=f.hostname==c.hostname&&f.port==c.port&&f.protocol==c.protocol}d=!d}if(d){b.__jquery_xdomain__=b.support.cors=!0;var g=function(c){return"object"===b.type(c)?c:(c=/^(((([^:\/#\?]+:)?(?:\/\/((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?]+)(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/.exec(c))?
{href:c[0]||"",hrefNoHash:c[1]||"",hrefNoSearch:c[2]||"",domain:c[3]||"",protocol:c[4]||"",authority:c[5]||"",username:c[7]||"",password:c[8]||"",host:c[9]||"",hostname:c[10]||"",port:c[11]||"",pathname:c[12]||"",directory:c[13]||"",filename:c[14]||"",search:c[15]||"",hash:c[16]||""}:{}},e=b.ajaxSettings.xhr,h="SESSION_COOKIE_NAME"in window?window.SESSION_COOKIE_NAME:"jsessionid",m=g(document.location.href).domain;b.ajaxSettings.xhr=function(){var c=g(this.url).domain;if(""===c||c===m)return e.call(b.ajaxSettings);
try{var d=new XDomainRequest;d.setRequestHeader||(d.setRequestHeader=b.noop);d.getAllResponseHeaders||(d.getAllResponseHeaders=b.noop);if(h){var f=d.open;d.open=function(){var b=RegExp("(?:^|; )"+h+"=([^;]*)","i").exec(document.cookie);if(b=b&&b[1]){var c=arguments[1].indexOf("?");arguments[1]=c==-1?arguments[1]+(";"+h+"="+b):arguments[1].substring(0,c)+";"+h+"="+b+arguments[1].substring(c)}return f.apply(this,arguments)}}d.onload=function(){if(typeof d.onreadystatechange==="function"){d.readyState=
4;d.status=200;d.onreadystatechange.call(d,null,false)}};d.onerror=d.ontimeout=function(){if(typeof d.onreadystatechange==="function"){d.readyState=4;d.status=500;d.onreadystatechange.call(d,null,false)}};return d}catch(q){}}}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutSine",swing:function(b,d,c,f,g){return jQuery.easing[jQuery.easing.def](b,d,c,f,g)},easeInSine:function(b,d,c,f,g){return-f*Math.cos(d/g*(Math.PI/2))+f+c},easeOutSine:function(b,d,c,f,g){return f*Math.sin(d/g*(Math.PI/2))+c},easeInOutSine:function(b,d,c,f,g){return-f/2*(Math.cos(Math.PI*d/g)-1)+c},easeInExpo:function(b,d,c,f,g){return 0==d?c:f*Math.pow(2,10*(d/g-1))+c},easeOutExpo:function(b,d,c,f,g){return d==g?c+f:f*(-Math.pow(2,-10*d/g)+1)+c},easeInOutExpo:function(b,
d,c,f,g){return 0==d?c:d==g?c+f:1>(d/=g/2)?f/2*Math.pow(2,10*(d-1))+c:f/2*(-Math.pow(2,-10*--d)+2)+c},easeInElastic:function(b,d,c,f,g){var b=1.70158,e=0,h=f;if(0==d)return c;if(1==(d/=g))return c+f;e||(e=0.3*g);h<Math.abs(f)?(h=f,b=e/4):b=e/(2*Math.PI)*Math.asin(f/h);return-(h*Math.pow(2,10*(d-=1))*Math.sin((d*g-b)*2*Math.PI/e))+c},easeOutElastic:function(b,d,c,f,g){var b=1.70158,e=0,h=f;if(0==d)return c;if(1==(d/=g))return c+f;e||(e=0.3*g);h<Math.abs(f)?(h=f,b=e/4):b=e/(2*Math.PI)*Math.asin(f/h);
return h*Math.pow(2,-10*d)*Math.sin((d*g-b)*2*Math.PI/e)+f+c},easeInOutElastic:function(b,d,c,f,g){var b=1.70158,e=0,h=f;if(0==d)return c;if(2==(d/=g/2))return c+f;e||(e=g*0.3*1.5);h<Math.abs(f)?(h=f,b=e/4):b=e/(2*Math.PI)*Math.asin(f/h);return 1>d?-0.5*h*Math.pow(2,10*(d-=1))*Math.sin((d*g-b)*2*Math.PI/e)+c:0.5*h*Math.pow(2,-10*(d-=1))*Math.sin((d*g-b)*2*Math.PI/e)+f+c},easeInBounce:function(b,d,c,f,g){return f-jQuery.easing.easeOutBounce(b,g-d,0,f,g)+c},easeOutBounce:function(b,d,c,f,g){return(d/=
g)<1/2.75?f*7.5625*d*d+c:d<2/2.75?f*(7.5625*(d-=1.5/2.75)*d+0.75)+c:d<2.5/2.75?f*(7.5625*(d-=2.25/2.75)*d+0.9375)+c:f*(7.5625*(d-=2.625/2.75)*d+0.984375)+c},easeInOutBounce:function(b,d,c,f,g){return d<g/2?0.5*jQuery.easing.easeInBounce(b,2*d,0,f,g)+c:0.5*jQuery.easing.easeOutBounce(b,2*d-g,0,f,g)+0.5*f+c}});
(function(b){b.fn.swipe=function(d){if(!this)return!1;var c={fingers:1,threshold:75,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,click:null,triggerOnTouchEnd:!0,allowPageScroll:"auto"},f="left",g="right",e="up",h="down",m="none",n="horizontal",k="vertical",o="auto",q="start",t="move",r="end",s="cancel",p="start";if(void 0==d.allowPageScroll&&(void 0!=d.swipe||void 0!=d.swipeStatus))d.allowPageScroll=m;d&&b.extend(c,d);return this.each(function(){var d,w,u,
B;function A(b){p=q;F=b.touches.length;distance=0;direction=null;F==c.fingers?(u=d=b.touches[0].pageX,B=w=b.touches[0].pageY,c.swipeStatus&&z(b,p)):D(b)}function x(b){if(!(p==r||p==s)){d=b.touches[0].pageX;w=b.touches[0].pageY;direction=C();F=b.touches.length;p=t;var q=direction;if(c.allowPageScroll==m)b.preventDefault();else{var u=c.allowPageScroll==o;switch(q){case f:(c.swipeLeft&&u||!u&&c.allowPageScroll!=n)&&b.preventDefault();break;case g:(c.swipeRight&&u||!u&&c.allowPageScroll!=n)&&b.preventDefault();
break;case e:(c.swipeUp&&u||!u&&c.allowPageScroll!=k)&&b.preventDefault();break;case h:(c.swipeDown&&u||!u&&c.allowPageScroll!=k)&&b.preventDefault()}}F==c.fingers?(distance=E(),c.swipeStatus&&z(b,p,direction,distance),!c.triggerOnTouchEnd&&distance>=c.threshold&&(p=r,z(b,p),D(b))):(p=s,z(b,p),D(b))}}function y(b){b.preventDefault();distance=E();direction=C();c.triggerOnTouchEnd?(p=r,F==c.fingers&&0!=d?distance>=c.threshold||(p=s):p=s,z(b,p),D(b)):p==t&&(p=s,z(b,p),D(b))}function D(){w=d=B=u=F=0}
function z(b,d){c.swipeStatus&&c.swipeStatus.call(G,b,d,direction||null,distance||0);d==s&&c.click&&(1==F&&(isNaN(distance)||0==distance))&&c.click.call(G,b,b.target);if(d==r)switch(c.swipe&&c.swipe.call(G,b,direction,distance),direction){case f:c.swipeLeft&&c.swipeLeft.call(G,b,direction,distance);break;case g:c.swipeRight&&c.swipeRight.call(G,b,direction,distance);break;case e:c.swipeUp&&c.swipeUp.call(G,b,direction,distance);break;case h:c.swipeDown&&c.swipeDown.call(G,b,direction,distance)}}function E(){return Math.round(Math.sqrt(Math.pow(d-
u,2)+Math.pow(w-B,2)))}function C(){var b;b=Math.atan2(w-B,u-d);b=Math.round(180*b/Math.PI);0>b&&(b=360-Math.abs(b));return 45>=b&&0<=b?f:360>=b&&315<=b?f:135<=b&&225>=b?g:45<b&&135>b?h:e}var G=b(this),F=0;w=d=B=u=0;try{this.addEventListener("touchstart",A,!1),this.addEventListener("touchmove",x,!1),this.addEventListener("touchend",y,!1),this.addEventListener("touchcancel",D,!1)}catch(H){}})}})(jQuery);
jQuery.browser.msie||eval(function(b,d,c,f,g,e){g=function(b){return(b<d?"":g(parseInt(b/d)))+(35<(b%=d)?String.fromCharCode(b+29):b.toString(36))};if(!"".replace(/^/,String)){for(;c--;)e[g(c)]=f[c]||g(c);f=[function(b){return e[b]}];g=function(){return"\\w+"};c=1}for(;c--;)f[c]&&(b=b.replace(RegExp("\\b"+g(c)+"\\b","g"),f[c]));return b}("9 17={3i:'0.1.3',16:1e-6};l v(){}v.23={e:l(i){8(i<1||i>7.4.q)?w:7.4[i-1]},2R:l(){8 7.4.q},1u:l(){8 F.1x(7.2u(7))},24:l(a){9 n=7.4.q;9 V=a.4||a;o(n!=V.q){8 1L}J{o(F.13(7.4[n-1]-V[n-1])>17.16){8 1L}}H(--n);8 2x},1q:l(){8 v.u(7.4)},1b:l(a){9 b=[];7.28(l(x,i){b.19(a(x,i))});8 v.u(b)},28:l(a){9 n=7.4.q,k=n,i;J{i=k-n;a(7.4[i],i+1)}H(--n)},2q:l(){9 r=7.1u();o(r===0){8 7.1q()}8 7.1b(l(x){8 x/r})},1C:l(a){9 V=a.4||a;9 n=7.4.q,k=n,i;o(n!=V.q){8 w}9 b=0,1D=0,1F=0;7.28(l(x,i){b+=x*V[i-1];1D+=x*x;1F+=V[i-1]*V[i-1]});1D=F.1x(1D);1F=F.1x(1F);o(1D*1F===0){8 w}9 c=b/(1D*1F);o(c<-1){c=-1}o(c>1){c=1}8 F.37(c)},1m:l(a){9 b=7.1C(a);8(b===w)?w:(b<=17.16)},34:l(a){9 b=7.1C(a);8(b===w)?w:(F.13(b-F.1A)<=17.16)},2k:l(a){9 b=7.2u(a);8(b===w)?w:(F.13(b)<=17.16)},2j:l(a){9 V=a.4||a;o(7.4.q!=V.q){8 w}8 7.1b(l(x,i){8 x+V[i-1]})},2C:l(a){9 V=a.4||a;o(7.4.q!=V.q){8 w}8 7.1b(l(x,i){8 x-V[i-1]})},22:l(k){8 7.1b(l(x){8 x*k})},x:l(k){8 7.22(k)},2u:l(a){9 V=a.4||a;9 i,2g=0,n=7.4.q;o(n!=V.q){8 w}J{2g+=7.4[n-1]*V[n-1]}H(--n);8 2g},2f:l(a){9 B=a.4||a;o(7.4.q!=3||B.q!=3){8 w}9 A=7.4;8 v.u([(A[1]*B[2])-(A[2]*B[1]),(A[2]*B[0])-(A[0]*B[2]),(A[0]*B[1])-(A[1]*B[0])])},2A:l(){9 m=0,n=7.4.q,k=n,i;J{i=k-n;o(F.13(7.4[i])>F.13(m)){m=7.4[i]}}H(--n);8 m},2Z:l(x){9 a=w,n=7.4.q,k=n,i;J{i=k-n;o(a===w&&7.4[i]==x){a=i+1}}H(--n);8 a},3g:l(){8 S.2X(7.4)},2d:l(){8 7.1b(l(x){8 F.2d(x)})},2V:l(x){8 7.1b(l(y){8(F.13(y-x)<=17.16)?x:y})},1o:l(a){o(a.K){8 a.1o(7)}9 V=a.4||a;o(V.q!=7.4.q){8 w}9 b=0,2b;7.28(l(x,i){2b=x-V[i-1];b+=2b*2b});8 F.1x(b)},3a:l(a){8 a.1h(7)},2T:l(a){8 a.1h(7)},1V:l(t,a){9 V,R,x,y,z;2S(7.4.q){27 2:V=a.4||a;o(V.q!=2){8 w}R=S.1R(t).4;x=7.4[0]-V[0];y=7.4[1]-V[1];8 v.u([V[0]+R[0][0]*x+R[0][1]*y,V[1]+R[1][0]*x+R[1][1]*y]);1I;27 3:o(!a.U){8 w}9 C=a.1r(7).4;R=S.1R(t,a.U).4;x=7.4[0]-C[0];y=7.4[1]-C[1];z=7.4[2]-C[2];8 v.u([C[0]+R[0][0]*x+R[0][1]*y+R[0][2]*z,C[1]+R[1][0]*x+R[1][1]*y+R[1][2]*z,C[2]+R[2][0]*x+R[2][1]*y+R[2][2]*z]);1I;2P:8 w}},1t:l(a){o(a.K){9 P=7.4.2O();9 C=a.1r(P).4;8 v.u([C[0]+(C[0]-P[0]),C[1]+(C[1]-P[1]),C[2]+(C[2]-(P[2]||0))])}1d{9 Q=a.4||a;o(7.4.q!=Q.q){8 w}8 7.1b(l(x,i){8 Q[i-1]+(Q[i-1]-x)})}},1N:l(){9 V=7.1q();2S(V.4.q){27 3:1I;27 2:V.4.19(0);1I;2P:8 w}8 V},2n:l(){8'['+7.4.2K(', ')+']'},26:l(a){7.4=(a.4||a).2O();8 7}};v.u=l(a){9 V=25 v();8 V.26(a)};v.i=v.u([1,0,0]);v.j=v.u([0,1,0]);v.k=v.u([0,0,1]);v.2J=l(n){9 a=[];J{a.19(F.2F())}H(--n);8 v.u(a)};v.1j=l(n){9 a=[];J{a.19(0)}H(--n);8 v.u(a)};l S(){}S.23={e:l(i,j){o(i<1||i>7.4.q||j<1||j>7.4[0].q){8 w}8 7.4[i-1][j-1]},33:l(i){o(i>7.4.q){8 w}8 v.u(7.4[i-1])},2E:l(j){o(j>7.4[0].q){8 w}9 a=[],n=7.4.q,k=n,i;J{i=k-n;a.19(7.4[i][j-1])}H(--n);8 v.u(a)},2R:l(){8{2D:7.4.q,1p:7.4[0].q}},2D:l(){8 7.4.q},1p:l(){8 7.4[0].q},24:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}o(7.4.q!=M.q||7.4[0].q!=M[0].q){8 1L}9 b=7.4.q,15=b,i,G,10=7.4[0].q,j;J{i=15-b;G=10;J{j=10-G;o(F.13(7.4[i][j]-M[i][j])>17.16){8 1L}}H(--G)}H(--b);8 2x},1q:l(){8 S.u(7.4)},1b:l(a){9 b=[],12=7.4.q,15=12,i,G,10=7.4[0].q,j;J{i=15-12;G=10;b[i]=[];J{j=10-G;b[i][j]=a(7.4[i][j],i+1,j+1)}H(--G)}H(--12);8 S.u(b)},2i:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}8(7.4.q==M.q&&7.4[0].q==M[0].q)},2j:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}o(!7.2i(M)){8 w}8 7.1b(l(x,i,j){8 x+M[i-1][j-1]})},2C:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}o(!7.2i(M)){8 w}8 7.1b(l(x,i,j){8 x-M[i-1][j-1]})},2B:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}8(7.4[0].q==M.q)},22:l(a){o(!a.4){8 7.1b(l(x){8 x*a})}9 b=a.1u?2x:1L;9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}o(!7.2B(M)){8 w}9 d=7.4.q,15=d,i,G,10=M[0].q,j;9 e=7.4[0].q,4=[],21,20,c;J{i=15-d;4[i]=[];G=10;J{j=10-G;21=0;20=e;J{c=e-20;21+=7.4[i][c]*M[c][j]}H(--20);4[i][j]=21}H(--G)}H(--d);9 M=S.u(4);8 b?M.2E(1):M},x:l(a){8 7.22(a)},32:l(a,b,c,d){9 e=[],12=c,i,G,j;9 f=7.4.q,1p=7.4[0].q;J{i=c-12;e[i]=[];G=d;J{j=d-G;e[i][j]=7.4[(a+i-1)%f][(b+j-1)%1p]}H(--G)}H(--12);8 S.u(e)},31:l(){9 a=7.4.q,1p=7.4[0].q;9 b=[],12=1p,i,G,j;J{i=1p-12;b[i]=[];G=a;J{j=a-G;b[i][j]=7.4[j][i]}H(--G)}H(--12);8 S.u(b)},1y:l(){8(7.4.q==7.4[0].q)},2A:l(){9 m=0,12=7.4.q,15=12,i,G,10=7.4[0].q,j;J{i=15-12;G=10;J{j=10-G;o(F.13(7.4[i][j])>F.13(m)){m=7.4[i][j]}}H(--G)}H(--12);8 m},2Z:l(x){9 a=w,12=7.4.q,15=12,i,G,10=7.4[0].q,j;J{i=15-12;G=10;J{j=10-G;o(7.4[i][j]==x){8{i:i+1,j:j+1}}}H(--G)}H(--12);8 w},30:l(){o(!7.1y){8 w}9 a=[],n=7.4.q,k=n,i;J{i=k-n;a.19(7.4[i][i])}H(--n);8 v.u(a)},1K:l(){9 M=7.1q(),1c;9 n=7.4.q,k=n,i,1s,1n=7.4[0].q,p;J{i=k-n;o(M.4[i][i]==0){2e(j=i+1;j<k;j++){o(M.4[j][i]!=0){1c=[];1s=1n;J{p=1n-1s;1c.19(M.4[i][p]+M.4[j][p])}H(--1s);M.4[i]=1c;1I}}}o(M.4[i][i]!=0){2e(j=i+1;j<k;j++){9 a=M.4[j][i]/M.4[i][i];1c=[];1s=1n;J{p=1n-1s;1c.19(p<=i?0:M.4[j][p]-M.4[i][p]*a)}H(--1s);M.4[j]=1c}}}H(--n);8 M},3h:l(){8 7.1K()},2z:l(){o(!7.1y()){8 w}9 M=7.1K();9 a=M.4[0][0],n=M.4.q-1,k=n,i;J{i=k-n+1;a=a*M.4[i][i]}H(--n);8 a},3f:l(){8 7.2z()},2y:l(){8(7.1y()&&7.2z()===0)},2Y:l(){o(!7.1y()){8 w}9 a=7.4[0][0],n=7.4.q-1,k=n,i;J{i=k-n+1;a+=7.4[i][i]}H(--n);8 a},3e:l(){8 7.2Y()},1Y:l(){9 M=7.1K(),1Y=0;9 a=7.4.q,15=a,i,G,10=7.4[0].q,j;J{i=15-a;G=10;J{j=10-G;o(F.13(M.4[i][j])>17.16){1Y++;1I}}H(--G)}H(--a);8 1Y},3d:l(){8 7.1Y()},2W:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}9 T=7.1q(),1p=T.4[0].q;9 b=T.4.q,15=b,i,G,10=M[0].q,j;o(b!=M.q){8 w}J{i=15-b;G=10;J{j=10-G;T.4[i][1p+j]=M[i][j]}H(--G)}H(--b);8 T},2w:l(){o(!7.1y()||7.2y()){8 w}9 a=7.4.q,15=a,i,j;9 M=7.2W(S.I(a)).1K();9 b,1n=M.4[0].q,p,1c,2v;9 c=[],2c;J{i=a-1;1c=[];b=1n;c[i]=[];2v=M.4[i][i];J{p=1n-b;2c=M.4[i][p]/2v;1c.19(2c);o(p>=15){c[i].19(2c)}}H(--b);M.4[i]=1c;2e(j=0;j<i;j++){1c=[];b=1n;J{p=1n-b;1c.19(M.4[j][p]-M.4[i][p]*M.4[j][i])}H(--b);M.4[j]=1c}}H(--a);8 S.u(c)},3c:l(){8 7.2w()},2d:l(){8 7.1b(l(x){8 F.2d(x)})},2V:l(x){8 7.1b(l(p){8(F.13(p-x)<=17.16)?x:p})},2n:l(){9 a=[];9 n=7.4.q,k=n,i;J{i=k-n;a.19(v.u(7.4[i]).2n())}H(--n);8 a.2K('\\n')},26:l(a){9 i,4=a.4||a;o(1g(4[0][0])!='1f'){9 b=4.q,15=b,G,10,j;7.4=[];J{i=15-b;G=4[i].q;10=G;7.4[i]=[];J{j=10-G;7.4[i][j]=4[i][j]}H(--G)}H(--b);8 7}9 n=4.q,k=n;7.4=[];J{i=k-n;7.4.19([4[i]])}H(--n);8 7}};S.u=l(a){9 M=25 S();8 M.26(a)};S.I=l(n){9 a=[],k=n,i,G,j;J{i=k-n;a[i]=[];G=k;J{j=k-G;a[i][j]=(i==j)?1:0}H(--G)}H(--n);8 S.u(a)};S.2X=l(a){9 n=a.q,k=n,i;9 M=S.I(n);J{i=k-n;M.4[i][i]=a[i]}H(--n);8 M};S.1R=l(b,a){o(!a){8 S.u([[F.1H(b),-F.1G(b)],[F.1G(b),F.1H(b)]])}9 d=a.1q();o(d.4.q!=3){8 w}9 e=d.1u();9 x=d.4[0]/e,y=d.4[1]/e,z=d.4[2]/e;9 s=F.1G(b),c=F.1H(b),t=1-c;8 S.u([[t*x*x+c,t*x*y-s*z,t*x*z+s*y],[t*x*y+s*z,t*y*y+c,t*y*z-s*x],[t*x*z-s*y,t*y*z+s*x,t*z*z+c]])};S.3b=l(t){9 c=F.1H(t),s=F.1G(t);8 S.u([[1,0,0],[0,c,-s],[0,s,c]])};S.39=l(t){9 c=F.1H(t),s=F.1G(t);8 S.u([[c,0,s],[0,1,0],[-s,0,c]])};S.38=l(t){9 c=F.1H(t),s=F.1G(t);8 S.u([[c,-s,0],[s,c,0],[0,0,1]])};S.2J=l(n,m){8 S.1j(n,m).1b(l(){8 F.2F()})};S.1j=l(n,m){9 a=[],12=n,i,G,j;J{i=n-12;a[i]=[];G=m;J{j=m-G;a[i][j]=0}H(--G)}H(--12);8 S.u(a)};l 14(){}14.23={24:l(a){8(7.1m(a)&&7.1h(a.K))},1q:l(){8 14.u(7.K,7.U)},2U:l(a){9 V=a.4||a;8 14.u([7.K.4[0]+V[0],7.K.4[1]+V[1],7.K.4[2]+(V[2]||0)],7.U)},1m:l(a){o(a.W){8 a.1m(7)}9 b=7.U.1C(a.U);8(F.13(b)<=17.16||F.13(b-F.1A)<=17.16)},1o:l(a){o(a.W){8 a.1o(7)}o(a.U){o(7.1m(a)){8 7.1o(a.K)}9 N=7.U.2f(a.U).2q().4;9 A=7.K.4,B=a.K.4;8 F.13((A[0]-B[0])*N[0]+(A[1]-B[1])*N[1]+(A[2]-B[2])*N[2])}1d{9 P=a.4||a;9 A=7.K.4,D=7.U.4;9 b=P[0]-A[0],2a=P[1]-A[1],29=(P[2]||0)-A[2];9 c=F.1x(b*b+2a*2a+29*29);o(c===0)8 0;9 d=(b*D[0]+2a*D[1]+29*D[2])/c;9 e=1-d*d;8 F.13(c*F.1x(e<0?0:e))}},1h:l(a){9 b=7.1o(a);8(b!==w&&b<=17.16)},2T:l(a){8 a.1h(7)},1v:l(a){o(a.W){8 a.1v(7)}8(!7.1m(a)&&7.1o(a)<=17.16)},1U:l(a){o(a.W){8 a.1U(7)}o(!7.1v(a)){8 w}9 P=7.K.4,X=7.U.4,Q=a.K.4,Y=a.U.4;9 b=X[0],1z=X[1],1B=X[2],1T=Y[0],1S=Y[1],1M=Y[2];9 c=P[0]-Q[0],2s=P[1]-Q[1],2r=P[2]-Q[2];9 d=-b*c-1z*2s-1B*2r;9 e=1T*c+1S*2s+1M*2r;9 f=b*b+1z*1z+1B*1B;9 g=1T*1T+1S*1S+1M*1M;9 h=b*1T+1z*1S+1B*1M;9 k=(d*g/f+h*e)/(g-h*h);8 v.u([P[0]+k*b,P[1]+k*1z,P[2]+k*1B])},1r:l(a){o(a.U){o(7.1v(a)){8 7.1U(a)}o(7.1m(a)){8 w}9 D=7.U.4,E=a.U.4;9 b=D[0],1l=D[1],1k=D[2],1P=E[0],1O=E[1],1Q=E[2];9 x=(1k*1P-b*1Q),y=(b*1O-1l*1P),z=(1l*1Q-1k*1O);9 N=v.u([x*1Q-y*1O,y*1P-z*1Q,z*1O-x*1P]);9 P=11.u(a.K,N);8 P.1U(7)}1d{9 P=a.4||a;o(7.1h(P)){8 v.u(P)}9 A=7.K.4,D=7.U.4;9 b=D[0],1l=D[1],1k=D[2],1w=A[0],18=A[1],1a=A[2];9 x=b*(P[1]-18)-1l*(P[0]-1w),y=1l*((P[2]||0)-1a)-1k*(P[1]-18),z=1k*(P[0]-1w)-b*((P[2]||0)-1a);9 V=v.u([1l*x-1k*z,1k*y-b*x,b*z-1l*y]);9 k=7.1o(P)/V.1u();8 v.u([P[0]+V.4[0]*k,P[1]+V.4[1]*k,(P[2]||0)+V.4[2]*k])}},1V:l(t,a){o(1g(a.U)=='1f'){a=14.u(a.1N(),v.k)}9 R=S.1R(t,a.U).4;9 C=a.1r(7.K).4;9 A=7.K.4,D=7.U.4;9 b=C[0],1E=C[1],1J=C[2],1w=A[0],18=A[1],1a=A[2];9 x=1w-b,y=18-1E,z=1a-1J;8 14.u([b+R[0][0]*x+R[0][1]*y+R[0][2]*z,1E+R[1][0]*x+R[1][1]*y+R[1][2]*z,1J+R[2][0]*x+R[2][1]*y+R[2][2]*z],[R[0][0]*D[0]+R[0][1]*D[1]+R[0][2]*D[2],R[1][0]*D[0]+R[1][1]*D[1]+R[1][2]*D[2],R[2][0]*D[0]+R[2][1]*D[1]+R[2][2]*D[2]])},1t:l(a){o(a.W){9 A=7.K.4,D=7.U.4;9 b=A[0],18=A[1],1a=A[2],2N=D[0],1l=D[1],1k=D[2];9 c=7.K.1t(a).4;9 d=b+2N,2h=18+1l,2o=1a+1k;9 Q=a.1r([d,2h,2o]).4;9 e=[Q[0]+(Q[0]-d)-c[0],Q[1]+(Q[1]-2h)-c[1],Q[2]+(Q[2]-2o)-c[2]];8 14.u(c,e)}1d o(a.U){8 7.1V(F.1A,a)}1d{9 P=a.4||a;8 14.u(7.K.1t([P[0],P[1],(P[2]||0)]),7.U)}},1Z:l(a,b){a=v.u(a);b=v.u(b);o(a.4.q==2){a.4.19(0)}o(b.4.q==2){b.4.19(0)}o(a.4.q>3||b.4.q>3){8 w}9 c=b.1u();o(c===0){8 w}7.K=a;7.U=v.u([b.4[0]/c,b.4[1]/c,b.4[2]/c]);8 7}};14.u=l(a,b){9 L=25 14();8 L.1Z(a,b)};14.X=14.u(v.1j(3),v.i);14.Y=14.u(v.1j(3),v.j);14.Z=14.u(v.1j(3),v.k);l 11(){}11.23={24:l(a){8(7.1h(a.K)&&7.1m(a))},1q:l(){8 11.u(7.K,7.W)},2U:l(a){9 V=a.4||a;8 11.u([7.K.4[0]+V[0],7.K.4[1]+V[1],7.K.4[2]+(V[2]||0)],7.W)},1m:l(a){9 b;o(a.W){b=7.W.1C(a.W);8(F.13(b)<=17.16||F.13(F.1A-b)<=17.16)}1d o(a.U){8 7.W.2k(a.U)}8 w},2k:l(a){9 b=7.W.1C(a.W);8(F.13(F.1A/2-b)<=17.16)},1o:l(a){o(7.1v(a)||7.1h(a)){8 0}o(a.K){9 A=7.K.4,B=a.K.4,N=7.W.4;8 F.13((A[0]-B[0])*N[0]+(A[1]-B[1])*N[1]+(A[2]-B[2])*N[2])}1d{9 P=a.4||a;9 A=7.K.4,N=7.W.4;8 F.13((A[0]-P[0])*N[0]+(A[1]-P[1])*N[1]+(A[2]-(P[2]||0))*N[2])}},1h:l(a){o(a.W){8 w}o(a.U){8(7.1h(a.K)&&7.1h(a.K.2j(a.U)))}1d{9 P=a.4||a;9 A=7.K.4,N=7.W.4;9 b=F.13(N[0]*(A[0]-P[0])+N[1]*(A[1]-P[1])+N[2]*(A[2]-(P[2]||0)));8(b<=17.16)}},1v:l(a){o(1g(a.U)=='1f'&&1g(a.W)=='1f'){8 w}8!7.1m(a)},1U:l(a){o(!7.1v(a)){8 w}o(a.U){9 A=a.K.4,D=a.U.4,P=7.K.4,N=7.W.4;9 b=(N[0]*(P[0]-A[0])+N[1]*(P[1]-A[1])+N[2]*(P[2]-A[2]))/(N[0]*D[0]+N[1]*D[1]+N[2]*D[2]);8 v.u([A[0]+D[0]*b,A[1]+D[1]*b,A[2]+D[2]*b])}1d o(a.W){9 c=7.W.2f(a.W).2q();9 N=7.W.4,A=7.K.4,O=a.W.4,B=a.K.4;9 d=S.1j(2,2),i=0;H(d.2y()){i++;d=S.u([[N[i%3],N[(i+1)%3]],[O[i%3],O[(i+1)%3]]])}9 e=d.2w().4;9 x=N[0]*A[0]+N[1]*A[1]+N[2]*A[2];9 y=O[0]*B[0]+O[1]*B[1]+O[2]*B[2];9 f=[e[0][0]*x+e[0][1]*y,e[1][0]*x+e[1][1]*y];9 g=[];2e(9 j=1;j<=3;j++){g.19((i==j)?0:f[(j+(5-i)%3)%3])}8 14.u(g,c)}},1r:l(a){9 P=a.4||a;9 A=7.K.4,N=7.W.4;9 b=(A[0]-P[0])*N[0]+(A[1]-P[1])*N[1]+(A[2]-(P[2]||0))*N[2];8 v.u([P[0]+N[0]*b,P[1]+N[1]*b,(P[2]||0)+N[2]*b])},1V:l(t,a){9 R=S.1R(t,a.U).4;9 C=a.1r(7.K).4;9 A=7.K.4,N=7.W.4;9 b=C[0],1E=C[1],1J=C[2],1w=A[0],18=A[1],1a=A[2];9 x=1w-b,y=18-1E,z=1a-1J;8 11.u([b+R[0][0]*x+R[0][1]*y+R[0][2]*z,1E+R[1][0]*x+R[1][1]*y+R[1][2]*z,1J+R[2][0]*x+R[2][1]*y+R[2][2]*z],[R[0][0]*N[0]+R[0][1]*N[1]+R[0][2]*N[2],R[1][0]*N[0]+R[1][1]*N[1]+R[1][2]*N[2],R[2][0]*N[0]+R[2][1]*N[1]+R[2][2]*N[2]])},1t:l(a){o(a.W){9 A=7.K.4,N=7.W.4;9 b=A[0],18=A[1],1a=A[2],2M=N[0],2L=N[1],2Q=N[2];9 c=7.K.1t(a).4;9 d=b+2M,2p=18+2L,2m=1a+2Q;9 Q=a.1r([d,2p,2m]).4;9 e=[Q[0]+(Q[0]-d)-c[0],Q[1]+(Q[1]-2p)-c[1],Q[2]+(Q[2]-2m)-c[2]];8 11.u(c,e)}1d o(a.U){8 7.1V(F.1A,a)}1d{9 P=a.4||a;8 11.u(7.K.1t([P[0],P[1],(P[2]||0)]),7.W)}},1Z:l(a,b,c){a=v.u(a);a=a.1N();o(a===w){8 w}b=v.u(b);b=b.1N();o(b===w){8 w}o(1g(c)=='1f'){c=w}1d{c=v.u(c);c=c.1N();o(c===w){8 w}}9 d=a.4[0],18=a.4[1],1a=a.4[2];9 e=b.4[0],1W=b.4[1],1X=b.4[2];9 f,1i;o(c!==w){9 g=c.4[0],2l=c.4[1],2t=c.4[2];f=v.u([(1W-18)*(2t-1a)-(1X-1a)*(2l-18),(1X-1a)*(g-d)-(e-d)*(2t-1a),(e-d)*(2l-18)-(1W-18)*(g-d)]);1i=f.1u();o(1i===0){8 w}f=v.u([f.4[0]/1i,f.4[1]/1i,f.4[2]/1i])}1d{1i=F.1x(e*e+1W*1W+1X*1X);o(1i===0){8 w}f=v.u([b.4[0]/1i,b.4[1]/1i,b.4[2]/1i])}7.K=a;7.W=f;8 7}};11.u=l(a,b,c){9 P=25 11();8 P.1Z(a,b,c)};11.2I=11.u(v.1j(3),v.k);11.2H=11.u(v.1j(3),v.i);11.2G=11.u(v.1j(3),v.j);11.36=11.2I;11.35=11.2H;11.3j=11.2G;9 $V=v.u;9 $M=S.u;9 $L=14.u;9 $P=11.u;",
62,206,"    elements   this return var            function   if  length    create Vector null         Math nj while  do anchor        Matrix  direction  normal    kj Plane ni abs Line ki precision Sylvester A2 push A3 map els else  undefined typeof contains mod Zero D3 D2 isParallelTo kp distanceFrom cols dup pointClosestTo np reflectionIn modulus intersects A1 sqrt isSquare X2 PI X3 angleFrom mod1 C2 mod2 sin cos break C3 toRightTriangular false Y3 to3D E2 E1 E3 Rotation Y2 Y1 intersectionWith rotate v12 v13 rank setVectors nc sum multiply prototype eql new setElements case each PA3 PA2 part new_element round for cross product AD2 isSameSizeAs add isPerpendicularTo v22 AN3 inspect AD3 AN2 toUnitVector PsubQ3 PsubQ2 v23 dot divisor inverse true isSingular determinant max canMultiplyFromLeft subtract rows col random ZX YZ XY Random join N2 N1 D1 slice default N3 dimensions switch liesIn translate snapTo augment Diagonal trace indexOf diagonal transpose minor row isAntiparallelTo ZY YX acos RotationZ RotationY liesOn RotationX inv rk tr det toDiagonalMatrix toUpperTriangular version XZ".split(" "),
0,{}));
eval(function(b,d,c,f,g,e){g=function(b){return(b<d?"":g(parseInt(b/d)))+(35<(b%=d)?String.fromCharCode(b+29):b.toString(36))};if(!"".replace(/^/,String)){for(;c--;)e[g(c)]=f[c]||g(c);f=[function(b){return e[b]}];g=function(){return"\\w+"};c=1}for(;c--;)f[c]&&(b=b.replace(RegExp("\\b"+g(c)+"\\b","g"),f[c]));return b}(";5(10.M)(w($){$.N({11:w(j,k){5(!j)t{};w B(d,e){5(!d)t y;6 f='',2=y,E=y;6 g=d.x,12=l(d.O||d.P);6 h=d.v||d.F||'';5(d.G){5(d.G.7>0){$.Q(d.G,w(n,a){6 b=a.x,u=l(a.O||a.P);6 c=a.v||a.F||'';5(b==8){t}z 5(b==3||b==4||!u){5(c.13(/^\\s+$/)){t};f+=c.H(/^\\s+/,'').H(/\\s+$/,'')}z{2=2||{};5(2[u]){5(!2[u].7)2[u]=p(2[u]);2[u][2[u].7]=B(a,R);2[u].7=2[u].7}z{2[u]=B(a)}}})}};5(d.I){5(d.I.7>0){E={};2=2||{};$.Q(d.I,w(a,b){6 c=l(b.14),C=b.15;E[c]=C;5(2[c]){5(!2[c].7)2[c]=p(2[c]);2[c][2[c].7]=C;2[c].7=2[c].7}z{2[c]=C}})}};5(2){2=$.N((f!=''?A J(f):{}),2||{});f=(2.v)?(D(2.v)=='16'?2.v:[2.v||'']).17([f]):f;5(f)2.v=f;f=''};6 i=2||f;5(k){5(f)i={};f=i.v||f||'';5(f)i.v=f;5(!e)i=p(i)};t i};6 l=w(s){t J(s||'').H(/-/g,\"18\")};6 m=w(s){t(D s==\"19\")||J((s&&D s==\"K\")?s:'').1a(/^((-)?([0-9]*)((\\.{0,1})([0-9]+))?$)/)};6 p=w(o){5(!o.7)o=[o];o.7=o.7;t o};5(D j=='K')j=$.S(j);5(!j.x)t;5(j.x==3||j.x==4)t j.F;6 q=(j.x==9)?j.1b:j;6 r=B(q,R);j=y;q=y;t r},S:w(a){6 b;T{6 c=($.U.V)?A 1c(\"1d.1e\"):A 1f();c.1g=W}X(e){Y A L(\"Z 1h 1i 1j 1k 1l\")};T{5($.U.V)b=(c.1m(a))?c:W;z b=c.1n(a,\"v/1o\")}X(e){Y A L(\"L 1p Z K\")};t b}})})(M);",62,
88,"  obj   if var length                      return cnn text function nodeType null else new parseXML atv typeof att nodeValue childNodes replace attributes String string Error jQuery extend localName nodeName each true text2xml try browser msie false catch throw XML window xml2json nn match name value object concat _ number test documentElement ActiveXObject Microsoft XMLDOM DOMParser async Parser could not be instantiated loadXML parseFromString xml parsing".split(" "),0,{}));
var imgLogo="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11e1c387,90f1ca95,e0f2c791,61efc088,0,0,0,0,0,0,0,0,11e1b487,90f1bf8a,e0f0b982,61efb279,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,71f3d2a2,f0f3cf9d,fff5cd99,fff5c992,fff5c38c,c0f2bd83,31eab67d,0,0,0,0,0,71f3d4a5,f0f3ce9b,fff5c892,fff4c088,fff3b97e,c0efaf74,31eaa668,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41f3d8ad,d0f3d7aa,fff7d6a6,fff6d29f,fff5cd99,fff5c992,fff5c38c,fff4bf86,fff3bb80,a0efb479,11e1a569,0,41f3e0b4,d0f5e0b6,fff7dcaf,fff7d5a4,fff5cd99,fff5c48e,fff3bd84,fff3b67a,fff1af71,a0edac6c,11e1965a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,81d38477,fff8dfb3,fff7daac,fff7d6a6,fff6d29f,fff5cd99,fff5c992,fff5c38c,fff4bf86,fff3bb80,fff3b67b,f0efb074,b0da9177,fff8e5bb,fff8e5bb,fff8e1b6,fff7d9aa,fff6d29f,fff5ca94,fff4c28a,fff3ba80,fff2b376,fff1ae6f,f0eeac6d,51e68e5e,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0b12a38,ffc04d4f,ffe6ae8f,fff7d6a6,fff6d29f,fff5cd99,fff5c992,fff5c38c,fff4bf86,fff3bb80,fff0a772,ffdf5845,ffba2b36,ffc04f51,ffe7b69b,fff8e4ba,fff8deb1,fff7d6a6,fff6cf9b,fff5c790,fff4bf86,fff3b77c,ffefa26b,ffdf5643,81ce262b,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0b12a38,ffb32c39,ffb32c39,ffc9615b,ffeebc92,fff5cd99,fff5c992,fff5c38c,fff3b982,fff0865e,ffe34938,ffd7302f,ffba2b36,ffb32c39,ffb32c39,ffc96662,fff0cba7,fff7dbad,fff6d3a1,fff5cb96,fff4bd88,fff0875e,ffe34938,ffd7302f,81ce262b,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0b12a38,ffb32c39,ffb32c39,ffb32c39,ffb7363f,ffd57c68,fff1be8d,fff4ad7e,fff37453,ffee543c,ffe24234,ffd7302f,ffba2b36,ffb32c39,ffb32c39,ffb32c39,ffb73741,ffd68475,fff3cda1,fff5b589,fff37555,ffee543c,ffe24234,ffd7302f,81ce262b,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0b12a38,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd56157,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,ffba2b36,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd56259,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,81ce262b,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0b12a38,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,ffba2b36,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,81ce262b,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0b12a38,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,ffba2b36,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,81ce262b,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11d25a4b,d0bb383d,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,ffba2b36,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,71cd242b,0,0,0,0,0,0,0,0,0,0,0,0,0,61e77e61,f0e57559,ffe56c54,ffd65648,ffb8323b,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,f0e04133,61d52f2d,11a51e2d,90af2a37,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,f0e04133,61d52f2d,0,0,0,0,0,0,0,0,0,0,0,0,31ef8c72,c0f08b70,ffef8469,ffeb7b60,ffe77258,ffe36850,ffe05e49,ffcb433e,ffb52e39,ffb32c39,ffd55d55,fff47f62,fff36a4d,81eb533b,11d23c2d,0,0,0,31ac2a34,c0b12a38,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,81eb533b,11d23c2d,0,0,0,0,0,0,0,0,0,0,0,11e18769,a0f29376,fff69578,fff59276,fff18a6d,ffed8065,ffe9775d,ffe56e55,ffe2644d,ffde5945,ffd84d3e,ffc03639,ffd55d55,c0f27f61,21e8644d,0,0,0,0,0,0,0,61b02a37,e0b02b38,ffd55d55,c0f27f61,21e8644d,0,0,0,0,0,0,0,0,0,0,0,0,0,c0ab304a,ffdb7068,fff69578,fff69578,fff38f72,ffef856a,ffeb7c61,ffe77359,ffe46951,ffe05f4a,ffdc5542,ffd4483b,90b83939,0,0,0,0,0,0,0,0,0,0,11a51e2d,31c14949,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0870035,ff8a0036,ffb2374f,ffef8c74,fff59376,fff28b6f,ffed8166,ffe9785e,ffe66f56,ffe2654e,ffc0413c,ffa12732,819a242f,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0870035,ff8a0036,ff8a0036,ff91093a,ffbf4a57,fff49073,fff0876b,ffec7d62,ffdc6453,ffb5353b,ffa62934,ff9f2632,819a242f,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0870035,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ff97123e,ffda675f,ffd3504d,ffbc343d,ffb3303a,ffaa2b36,ffa22833,819a242f,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0870035,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ffae203e,ffcc3c43,ffc1373f,ffb7323b,ffae2d38,ffa62934,819e2631,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0870035,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ffb1223f,ffd03f45,ffc73a41,ffbc343d,ffb32f3a,ffaa2b36,81a22831,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0870035,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ffb42340,ffd64247,ffcb3c43,ffc0373f,ffb7323b,ffae2d38,81a62a33,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,81880035,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ffb72441,ffdc4549,ffd03f44,ffc53940,ffbb343d,ffb16a7c,d0a9afcc,31a1c1e0,0,0,0,0,0,0,0,0,0,71abc9e6,b0a8c7e6,41a1c4e3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41850033,d0880035,ff8a0036,ff8a0036,ff8a0036,ffba2642,ffe1484b,ffd54246,ffc7616d,ffb7b2cc,ffb0cdec,ffabcaea,ffa6c7e9,909fbfe4,1187b4d2,0,0,0,0,0,41b4cce7,d0b3cde8,ffb0cdec,ffabcaea,ffa6c7e9,a09ec1e5,1187b4d2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61860034,f0880035,ff8a0036,ffbc2743,ffe35d62,ffca9fb0,ffbad3ee,ffb5d0ed,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,f09abee3,7195bbe1,0,0,21b9d1e8,b0bcd3ec,ffbad3ee,ffb5d0ed,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,f09abee3,7195bbe1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1178002d,90880035,ffa05a78,ffc8d1e7,ffbfd6f0,ffbad3ee,ffb5d0ed,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,ff9cc0e6,ff98bee5,d090bae2,908eacc6,f0c2d8ee,ffbfd6f0,ffbad3ee,ffb5d0ed,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,ff9cc0e6,ff98bee5,e091b9e2,318cb1db,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0033249,ff3f677e,ffa8c1db,ffbad3ee,ffb5d0ed,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,ff9cc0e6,ff98bee5,ff4988ba,ff0c4161,ff3f677e,ffa8c1db,ffbad3ee,ffb5d0ed,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,ff9cc0e6,ff8eb8e0,ff4988ba,81004d8a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0033249,ff04334b,ff103d55,ff5e829c,ffb5d0ed,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,ff6ea4d0,ff1369a0,ff005591,ff033a5b,ff04334b,ff04334b,ff5e829c,ffaac5e2,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,ff6ea4d0,ff1369a0,ff005591,81004d8a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0033249,ff04334b,ff04334b,ff04334b,ff19465f,ff7a9cb9,ffabcaea,ff99bce1,ff4985b5,ff10669e,ff005d97,ff005591,ff033a5b,ff04334b,ff04334b,ff04334b,ff19465f,ff7a9cb9,ffabcaea,ff93b7dd,ff4985b5,ff10669e,ff005d97,ff005591,81004d8a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0033249,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff447092,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,ff033a5b,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff3e6b8e,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,81004d8a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0033249,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,ff033a5b,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,81004d8a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0033249,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,ff033a5b,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,81004d8a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0033249,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,ff033a5b,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,81004d8a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31002f49,c0033249,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,8100558e,41003756,c0033249,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,8100558e,11004b78,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61033249,e003324a,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,c011659d,21005593,0,0,0,51032f48,e003324a,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,b011659c,21005593,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11002d3c,81043149,ff04334b,ff28597e,e04277a9,512f6ea0,0,0,0,0,0,0,11002d3c,81043149,f003324a,ff28597e,e04277a9,412f6ea1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21002e46,71225173,0,0,0,0,0,0,0,0,0,0,21002e46,71225173,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0",CU3ERPlayer=
{stage:"#cu3er",slides:".CU3ERslides",json:null,jsonOriginal:null,slidesTotal:0,imgFallbackFolder:null,no:0,xml:null,current:0,nextSlide:0,rnd:null,transition:null,originalJSONelements:null,elements:null,tempTimeout:[],randomise:"false",a:0,licenceEncoded:null,globald:"",slicesDirections:{},totalInd:3,images:null,autoplay:!1,loop:0,doCheck:!0,licd:[],mOver:!1,currentLoop:1,debugMode:!1,canvasSupported:!1,paused:!1,pauseType:0,inTransition:!0,directionReverse:!1,keyboardControls:!0,rollOverPause:!1,
disable3d:!1,touchable:!1,displayVersion:null,pauseStartTimer:null,autoscrollThumbs:!0,time:null,licenseStr:"",level:2,devices_2d:"CPU OS 3_2;CPU OS 3_3;CPU OS 3_4;CPU OS 3_5;CPU OS 3_6;CPU OS 3_7;CPU OS 3_8;CPU OS 3_9;CPU OS 4_0;CPU OS 4_1;CPU OS 4_2;Fennec;Android".split(";"),simple_devices:"Android 2.1;Android 1.6;Android 1.5;Apple-iPhone1C2;Apple-iPhone/50; Apple-iPhone/701; Apple-iPhone/703".split(";"),nextFlag:!0,verySlow:!1,force_simple:!1,timerShader:1,scrollOptions:{},easingValues:{"Sine.easeInOut":"easeInOutSine",
"Sine.easeOut":"easeOutSine","Sine.easeIn":"easeInSine","Bounce.easeOut":"easeOutBounce","Bounce.easeInOut":"easeInOutBounce","Bounce.easeIn":"easeInBounce","Elastic.easeOut":"easeOutElastic","Elastic.easeInOut":"easeInOutElastic","Elastic.easeIn":"easeInElastic","Expo.easeOut":"easeOutExpo","Expo.easeInOut":"easeInOutExpo","Expo.easeIn":"easeInExpo","Sine.easeIn.3d":"cubic-bezier(0.42, 0, 1, 1)","Sine.easeOut.3d":"cubic-bezier(0, 0, 0.58, 1)","Sine.easeInOut.3d":"cubic-bezier(0.42, 0, 0.58, 1)",
"Elastic.easeIn.3d":"cubic-bezier(0.5, 0, 1, 0)","Elastic.easeOut.3d":"cubic-bezier(1, 0, 0.5, 1)","Elastic.easeInOut.3d":"cubic-bezier(1, 0, 0.7, 1)","Bounce.easeIn.3d":"cubic-bezier(0, 0.35, .5, 1)","Bounce.easeOut.3d":"cubic-bezier(0, 0.5, 0.35, 1)","Bounce.easeInOut.3d":"cubic-bezier(0, 0.7, 0, 1)","Expo.easeIn.3d":"cubic-bezier(0.5, 0, 0.7, 0)","Expo.easeOut.3d":"cubic-bezier(1, 0, 0.5, 1)","Expo.easeInOut.3d":"cubic-bezier(1, 0.3, 0, 1)"},initJS:function(b){var d=this.id,c=jQuery("script"),
f=RegExp(/jquery\.cu3er\.js/ig),g=null;c.each(function(){f.test(jQuery(this).attr("src"))&&(g=jQuery(this))});var c=new Date,e,h;e="";e=c.getDate.call(c);e=CU3ER[d].addDigit(String(e));h=c.getMonth.call(c);e=CU3ER[d].addDigit(String(h+1))+e;c=c.getFullYear.call(c);e=String(c)+e;CU3ER[d].globald=e;c="undefined"!=typeof b.vars.css_location&&""!=b.vars.css_location?b.vars.css_location:g.attr("src").replace(/js\/jquery\.cu3er\.js/,"")+"css/CU3ER.css";e=document.createElement("link");e.setAttribute("rel",
"stylesheet");e.setAttribute("type","text/css");e.setAttribute("href",c);document.getElementsByTagName("head")[0].appendChild(e);if("undefined"!=typeof b.vars.js_font_links)for(i in b.vars.js_font_links)e=document.createElement("link"),e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href",b.vars.js_font_links[i]),document.getElementsByTagName("head")[0].appendChild(e);jQuery.browser.msie&&(c="undefined"!=typeof b.vars.css_location&&""!=b.vars.css_location?b.vars.css_location.replace(/\.css/,
"ieFix.css"):g.attr("src").replace(/js\/jquery\.cu3er\.js/,"")+"css/CU3ERieFix.css",e=document.createElement("link"),e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href",c),document.getElementsByTagName("head")[0].appendChild(e));this.debugMode="undefined"!=typeof b.vars.debug?b.vars.debug:!1;this.stage="#"+d;this.slides=this.stage+" .CU3ERslides";this.disable3d="undefined"!=typeof b.vars.js_disable_3d&&!0==b.vars.js_disable_3d?!0:!1;this.checkTouch();this.keyboardControls=
"undefined"!=typeof b.vars.keyboard_controls&&!1==b.vars.keyboard_controls?!1:!0;this.checkCanvas();jQuery(this.stage).css("margin","0 auto").empty().append('<div class="CU3ERlayer"></div><div class="CU3ERslides"><div class="CU3ERbox-holder"><div class="CU3ERbox"></div></div><div class="CU3ERslides-holder"></div><div class="CU3ERtransition-holder"></div></div>').css({"z-index":400});jQuery(this.stage+" .CU3ERlayer").css({position:"absolute",top:0,left:0,width:"100%",height:"100%","z-index":1E3,display:"block"});
"object"==typeof b.vars.force_2d_devices&&(this.devices_2d=jQuery.extend(!0,{},this.devices_2d,b.vars.force_2d_devices));for(i in this.devices_2d)-1!=navigator.userAgent.toLowerCase().indexOf(String(this.devices_2d[i]).toLowerCase())&&-1==navigator.userAgent.toLowerCase().indexOf("android 4")&&(CU3ER[d].level=1,CU3ER[d].support3d=!1);"object"==typeof b.vars.force_simple_devices&&(this.simple_devices=jQuery.extend(!0,{},this.simple_devices,b.vars.force_simple_devices));for(i in this.simple_devices)-1!=
navigator.userAgent.toLowerCase().indexOf(String(this.simple_devices[i]).toLowerCase())&&(CU3ER[d].level=0,CU3ER[d].support3d=!1,CU3ER[d].force_simple=!0);"undefined"!=typeof b.vars.force_2d&&!0==b.vars.force_2d&&(CU3ER[d].level=1,this.support3d=!1);"undefined"!=typeof b.vars.force_simple&&!0==b.vars.force_simple&&(CU3ER[d].level=0,this.support3d=!1,this.force_simple=!0);if(-1!=navigator.userAgent.toLowerCase().indexOf("iphone")){c=(new Date).getTime();for(e=0;20>(new Date).getTime()-c;)Math.random(),
e++;if(this.force_simple=2E3>e)CU3ER[d].level=0,CU3ER[d].support3d=!1,CU3ER[d].verySlow=!0}if("undefined"!=typeof b.vars.xml_location&&""!=b.vars.xml_location)jQuery.get(b.vars.xml_location,function(c){setTimeout(function(){CU3ER[d].initPlayer(c,b)},75)});else{var m=this.decodeXML(b.vars.xml_encoded),m=m.replace(RegExp(/\+/g)," ");setTimeout(function(){CU3ER[d].initPlayer(m,b)},75)}},decodeXML:function(b){arr=b.split("%3C%21%5BCDATA%5B");arrFinal=[];arrFinal.push(decodeURIComponent(arr[0]));for(var b=
function(b){arrPerc=b.split("%25");for(b=0;b<arrPerc.length;b++)arrPerc[b]=decodeURIComponent(arrPerc[b]);return arrPerc.join("%")},d=1;d<arr.length;d++)arr2=arr[d].split("%5D%5D%3E"),arrFinal.push(b(arr2[0])+"]]\>"+decodeURIComponent(arr2[1]));return strFinal=arrFinal.join("<![CDATA[")},initPlayer:function(b,d){var c=this.id;CU3ER[c].xml=b;json=jQuery.xml2json(b);json2=jQuery.xml2json(b,!0);json.settings.width="undefined"!=typeof d.vars.width?d.vars.width:json.project_settings.width;json.settings.height=
"undefined"!=typeof d.vars.height?d.vars.height:json.project_settings.height;"undefined"!=typeof d.vars.folder_images&&(json.settings.folder_images=d.vars.folder_images);CU3ER[c].json=json;CU3ER[c].json.custom="undefined"!=typeof d.custom?d.custom:{};json.slides.transition=null;json.slides.transition=json2.slides[0].transition;"undefined"!=typeof json.fonts_html&&(json.fonts_html=json2.fonts_html[0]);switch(this.level){case 2:CU3ER[c].displayVersion=CU3ER[c].support3d?"JS-3D":CU3ER[c].isCameraFlat()?
"JS-Slicing":"JS-Simple";break;case 1:CU3ER[c].displayVersion=CU3ER[c].isCameraFlat()?"JS-Slicing":"JS-Simple";break;case 0:CU3ER[c].displayVersion="JS-Simple"}this.onSliderInit();if("undefined"!=typeof d.vars.xml_encoded&&""!=d.vars.xml_encoded&&"undefined"!=typeof d.vars.xml_location&&""!=d.vars.xml_location){var f=this.decodeXML(d.vars.xml_encoded),f=f.replace(RegExp(/\+/g)," "),g=jQuery.xml2json(f,!0),f=jQuery.xml2json(f);"undefined"!=typeof f.licence&&(CU3ER[c].licenseStr=f.licence);if("undefined"!=
typeof f.settings&&("undefined"!=typeof f.settings.folder_images&&(json.settings.folder_images=f.settings.folder_images),"undefined"!=typeof f.settings.background&&(json.settings.background=f.settings.background),"undefined"!=typeof f.settings.auto_play&&(json.settings.auto_play=f.settings.auto_play),"undefined"!=typeof f.settings.start_slide&&(json.settings.start_slide=f.settings.start_slide),"undefined"!=typeof f.settings.randomize_slides&&(json.settings.randomize_slides=f.settings.randomize_slides),
"undefined"!=typeof f.settings.loop&&(json.settings.loop=f.settings.loop),"undefined"!=typeof f.settings.branding&&(json.settings.branding=f.settings.branding),"undefined"!=typeof f.settings.camera&&(json.settings.camera=f.settings.camera),"undefined"!=typeof f.settings.shadow))json.settings.shadow=f.settings.shadow;if("undefined"!=typeof f.slides&&("undefined"!=typeof f.slides.slide&&(json.slides.slide=f.slides.slide),"undefined"!=typeof g.slides[0].transition&&(json.slides.transition=g.slides[0].transition),
"undefined"!=typeof f.slides.width&&(json.slides.width=f.slides.width),"undefined"!=typeof f.slides.height&&(json.slides.height=f.slides.height),"undefined"!=typeof f.slides.align_pos&&(json.slides.align_pos=f.slides.align_pos),"undefined"!=typeof f.slides.x&&(json.slides.x=f.slides.x),"undefined"!=typeof f.slides.y))json.slides.y=f.slides.y;if("undefined"!=typeof f.defaults&&("undefined"!=typeof f.defaults.slide&&(json.defaults.slide=f.defaults.slide),"undefined"!=typeof g.defaults[0].transition))json.defaults.transition=
g.defaults[0].transition[0];if("undefined"!=typeof g.preloader&&("undefined"!=typeof f.preloader.image&&(json.preloader.image=f.preloader.image),"undefined"!=typeof f.preloader.background&&(json.preloader.background=f.preloader.background),"undefined"!=typeof f.preloader.loader))json.preloader.loader=f.preloader.loader;if("undefined"!=typeof g.controls&&("undefined"!=typeof f.controls.next_button&&(json.controls.next_button=f.controls.next_button),"undefined"!=typeof f.controls.prev_button&&(json.controls.prev_button=
f.controls.prev_button),"undefined"!=typeof f.controls.auto_play_indicator))json.controls.auto_play_indicator=f.controls.auto_play_indicator;"undefined"!=typeof f.description&&(json.description=f.description);"undefined"!=typeof g.thumbnails&&(json.thumbnails=g.thumbnails)}"undefined"!=typeof g&&"undefined"!=typeof g.licence&&(this.licenceEncoded=g.licence);json2=null;CU3ER[c].imgFallbackFolder="undefined"!=typeof d.vars.folder_images_fallback?d.vars.folder_images_fallback:json.settings.folder_images;
CU3ER[c].jsonOriginal=jQuery.extend(!0,{},json);CU3ER[c].randomise=json.settings.randomize_slides;CU3ER[c].autoplay="undefined"!=typeof json.settings.auto_play?json.settings.auto_play:CU3ER[c].autoplay;CU3ER[c].loop="undefined"!=typeof json.settings.loop?json.settings.loop:CU3ER[c].loop;CU3ER[c].current="undefined"!=typeof json.settings.start_slide?parseInt(json.settings.start_slide)-1:CU3ER[c].current;CU3ER[c].current="undefined"!=typeof d.vars.start_slide?parseInt(d.vars.start_slide)-1:CU3ER[c].current;
CU3ER[c].nextSlide=CU3ER[c].current;if((!0==d.vars.pause_on_rollover||"undefined"!=typeof json.settings.pause_on_rollover&&"true"==json.settings.pause_on_rollover)&&!CU3ER[c].isTouch())CU3ER[c].rollOverPause=!0;CU3ER[c].isTouch()&&jQuery(CU3ER[c].stage).swipe({swipeLeft:function(){if(!CU3ER[c].inTransition){CU3ER[c].inTransition=true;CU3ER[c].doCheck=false;setTimeout(function(){CU3ER[c].next()},50)}},swipeRight:function(){if(!CU3ER[c].inTransition){CU3ER[c].inTransition=true;CU3ER[c].doCheck=false;
setTimeout(function(){CU3ER[c].prev()},50)}},threshold:50});"undefined"!=typeof d.vars.autoscroll_thumbs&&(CU3ER[c].autoscrollThumbs=d.vars.autoscroll_thumbs);CU3ER[c].currSlideNo=CU3ER[c].current+1;-1<String(json.settings.width).indexOf("%")||-1<String(json.settings.width).indexOf("p")?(json.settings.width=json.settings.width.replace("p","%"),0==jQuery(CU3ER[c].stage).parent().width()?(jQuery(CU3ER[c].stage).css({width:json.settings.width}),g=jQuery(CU3ER[c].stage).parent().width()):g=jQuery(CU3ER[c].stage).parent().width()*
parseInt(json.settings.width)/100,CU3ER[c].json.settings.width=g,json.settings.width=g):g=parseFloat(json.settings.width)+"px";-1<String(json.settings.height).indexOf("%")||-1<String(json.settings.height).indexOf("p")?(json.settings.height=json.settings.height.replace("p","%"),0==jQuery(CU3ER[c].stage).parent().height()?(jQuery(CU3ER[c].stage).css({height:json.settings.height}),f=jQuery(CU3ER[c].stage).parent().height()):f=jQuery(CU3ER[c].stage).parent().height()*parseInt(json.settings.height)/100,
CU3ER[c].json.settings.height=f,json.settings.height=f):f=parseFloat(json.settings.height)+"px";"undefined"!=typeof json.controls.prev_button&&("undefined"!=typeof json.controls.prev_button.symbol&&CU3ER[c].totalInd++,json.controls.prev_button.type="prev",json.controls.prev_button.type1="Prev",CU3ER[c].drawButtons(json.controls.prev_button,json.slides.width,json.slides.height,json.settings.width,json.settings.height));"undefined"!=typeof json.controls.next_button&&("undefined"!=typeof json.controls.next_button.symbol&&
CU3ER[c].totalInd++,json.controls.next_button.type="next",json.controls.next_button.type1="Next",CU3ER[c].drawButtons(json.controls.next_button,json.slides.width,json.slides.height,json.settings.width,json.settings.height));if("undefined"!=typeof json.fonts_html)if("undefined"!=typeof json.fonts_html.url.length)for(i in json.fonts_html.url){var e=document.createElement("link");e.setAttribute("rel","stylesheet");e.setAttribute("type","text/css");e.setAttribute("href",json.fonts_html.url[i].text);document.getElementsByTagName("head")[0].appendChild(e)}else e=
document.createElement("link"),e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href",json.fonts_html.url.text),document.getElementsByTagName("head")[0].appendChild(e);jQuery(CU3ER[c].stage).css({width:g,height:f,position:"relative",overflow:"hidden",outline:"none","font-size":0});jQuery(CU3ER[c].slides).css({width:Math.round(parseFloat(json.slides.width))+"px",height:Math.round(parseFloat(json.slides.height))+"px",outline:"none"});CU3ER[c].drawProgressBar("undefined"!=
typeof CU3ER[c].json.preloader.image?{type:"sliderLoad",width:CU3ER[c].json.preloader.image.width,height:CU3ER[c].json.preloader.image.height,loaderTweenShowTint:CU3ER[c].json.preloader.loader.tweenShow.tint,loaderTreenOverTint:CU3ER[c].json.preloader.loader.tweenOver.tint,loaderTweenShowAlpha:CU3ER[c].json.preloader.image.alpha_loader,loaderTweenOverAlpha:CU3ER[c].json.preloader.image.alpha_loader,bgTweenShowAlpha:CU3ER[c].json.preloader.image.alpha_bg,bgTweenOverAlpha:CU3ER[c].json.preloader.image.alpha_bg,
bgTweenShowTint:CU3ER[c].json.preloader.background.tweenShow.tint,bgTweenOverTint:CU3ER[c].json.preloader.background.tweenOver.tint,image:CU3ER[c].imgFallbackFolder+"/fallback/preloader_image.png",posX:CU3ER[c].json.preloader.image.x,posY:CU3ER[c].json.preloader.image.y,align_pos:CU3ER[c].json.preloader.image.align_pos,align_to:CU3ER[c].json.preloader.image.align_to,padding:0,shape:CU3ER[c].json.preloader.type,radius:"undefined"!=typeof CU3ER[c].json.preloader.radius?CU3ER[c].json.preloader.radius:
null}:{type:"sliderLoad",width:"undefined"!=typeof CU3ER[c].json.preloader.width?CU3ER[c].json.preloader.width:null,height:"undefined"!=typeof CU3ER[c].json.preloader.height?CU3ER[c].json.preloader.height:null,loaderTweenShowTint:CU3ER[c].json.preloader.loader.tweenShow.tint,loaderTreenOverTint:CU3ER[c].json.preloader.loader.tweenOver.tint,loaderTweenShowAlpha:CU3ER[c].json.preloader.loader.tweenShow.alpha,loaderTweenOverAlpha:CU3ER[c].json.preloader.loader.tweenOver.alpha,bgTweenShowAlpha:CU3ER[c].json.preloader.background.tweenShow.alpha,
bgTweenOverAlpha:CU3ER[c].json.preloader.background.tweenOver.alpha,bgTweenShowTint:CU3ER[c].json.preloader.background.tweenShow.tint,bgTweenOverTint:CU3ER[c].json.preloader.background.tweenOver.tint,image:"undefined"!=typeof CU3ER[c].json.preloader.image?CU3ER[c].imgFallbackFolder+"/fallback/preloader_image.png":null,posX:CU3ER[c].json.preloader.x,posY:CU3ER[c].json.preloader.y,align_pos:CU3ER[c].json.preloader.align_pos,align_to:"stage"==CU3ER[c].json.preloader.align_to?"stage":"slides",padding:CU3ER[c].json.preloader.background.padding,
shape:CU3ER[c].json.preloader.type,radius:"undefined"!=typeof CU3ER[c].json.preloader.radius?CU3ER[c].json.preloader.radius:null});CU3ER[c].updateIndicator(++CU3ER[c].a,CU3ER[c].totalInd,CU3ER[c].stage+" .CU3ERindicator",!0);if(!0==d.vars.pause_on_rollover||"undefined"!=typeof json.settings.pause_onrollover&&"true"==json.settings.pause_on_rollover)CU3ER[c].rollOverPause=!0;CU3ER[c].debug("xml loaded");CU3ER[c].is3D()?"undefined"!=typeof json.settings.background.image&&"true"==json.settings.background.image.use_image?
("false"==json.settings.background.color.transparent&&jQuery(CU3ER[c].stage).css("backgroundColor",json.settings.background.color.text.replace("0x","#")),jQuery(CU3ER[c].stage).prepend('<div class="CU3ERbackground"></div>'),CU3ER[c].drawBackground(json.settings.background)):(CU3ER[c].updateIndicator(++CU3ER[c].a,CU3ER[c].totalInd,CU3ER[c].stage+" .CU3ERindicator",!0),"undefined"!=typeof json.settings.background.color.transparent&&"true"==json.settings.background.color.transparent?jQuery(CU3ER[c].stage).css("backgroundColor",
"transparent"):jQuery(CU3ER[c].stage).css("backgroundColor",json.settings.background.color.text.replace("0x","#")),CU3ER[c].debug("background loaded")):(jQuery(CU3ER[c].stage).prepend('<div class="CU3ERbackground"></div>'),CU3ER[c].drawBackground(json.settings.background));CU3ER[c].drawSlides(json.slides,json.defaults,json.settings,json.thumbnails,d);"undefined"!=typeof json.description&&CU3ER[c].drawDescription(json.description)},drawBackground:function(b){var d=this.id,c=this.el;if(CU3ER[d].is3D()){var f=
/https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?/.test(CU3ER[d].json.settings.background.image.url)?CU3ER[d].json.settings.background.image.url:CU3ER[d].json.settings.folder_images+"/"+CU3ER[d].json.settings.background.image.url,g=new Image;jQuery(g).attr("src",f).bind("load",function(){CU3ER[d].updateIndicator(++CU3ER[d].a,CU3ER[d].totalInd,CU3ER[d].stage+" .CU3ERindicator",!0);var e=[];e[0]="undefined"!=typeof b.image.scaleX?parseFloat(b.image.scaleX):1;e[1]="undefined"!=typeof b.image.scaleY?
parseFloat(b.image.scaleY):1;var h=g.width*e[0],m=g.height*e[1];cssBgd=CU3ER[d].calculatePosition({align_pos:"undefined"!=typeof b.image.align_pos?b.image.align_pos:"TL",x:"undefined"!=typeof b.image.x?b.image.x:0,y:"undefined"!=typeof b.image.y?b.image.y:0,width:h,height:m,fullWidth:CU3ER[d].json.settings.width,fullHeight:CU3ER[d].json.settings.height});cssBgdFixed={width:h+"px",height:m+"px",position:"absolute",backgroundColor:"undefined"!=typeof b.color.transparent&&"true"==b.color.transparent?
"transparent":b.color.text.replace("0x","#"),zIndex:"-1",display:"none"};cssBgd=jQuery.extend(cssBgdFixed,cssBgd);jQuery(".CU3ERbackground",c).css(cssBgd).append('<img src="'+f+'" />').find("img").css({WebkitTransform:"scaleX("+e[0]+") scaleY("+e[1]+")",MozTransform:"scaleX("+e[0]+") scaleY("+e[1]+")","WebkitTransform-origin":"top left","MozTransform-origin":"top left"});CU3ER[d].debug("background loaded")}).error(function(){null==CU3ER[d].transition&&(CU3ER[d].updateIndicator(++CU3ER[d].a,CU3ER[d].totalInd,
CU3ER[d].stage+" .CU3ERindicator",!0),CU3ER[d].debug("ERROR: background not exist"))})}else f=CU3ER[d].imgFallbackFolder+"/fallback/bg.png",g=new Image,jQuery(g).attr("src",f).bind("load",function(){CU3ER[d].updateIndicator(++CU3ER[d].a,CU3ER[d].totalInd,CU3ER[d].stage+" .CU3ERindicator",!0);cssBgd=CU3ER[d].calculatePosition({align_pos:"TL",x:0,y:0,width:g.width,height:g.height,fullWidth:CU3ER[d].json.settings.width,fullHeight:CU3ER[d].json.settings.height});cssBgdFixed={width:g.width+"px",height:g.height+
"px",position:"absolute",background:'url("'+f+'") top left no-repeat',zIndex:"-1",display:"none"};cssBgd=jQuery.extend(cssBgdFixed,cssBgd);jQuery(".CU3ERbackground",c).css(cssBgd);CU3ER[d].debug("background loaded")}).error(function(){null==CU3ER[d].transition&&(CU3ER[d].updateIndicator(++CU3ER[d].a,CU3ER[d].totalInd,CU3ER[d].stage+" .CU3ERindicator",!0),CU3ER[d].debug("ERROR: background not exist"))})},createSlices3DcssAnimation:function(b,d){var c,f,g=this.id,e="",h="",m="",n="",k=b.flipDirection.split(","),
o=parseInt(b.rows)*parseInt(b.columns);this.slicesDirections[d]=[];for(var q=0;q<o;q++){m=1==k.length?0:Math.floor(Math.random()*k.length);CU3ER[g].slicesDirections[d].push(k[m]);if("180"==b.flipAngle)switch(k[m]){case "left":c=-180;f="rotateY";break;case "right":c=180;f="rotateY";break;case "down":c=-180;f="rotateX";break;case "up":c=180,f="rotateX"}else if("90"==b.flipAngle)switch(k[m]){case "left":c=-90;f="rotateY";break;case "right":c=90;f="rotateY";break;case "down":c=-90;f="rotateX";break;case "up":c=
90,f="rotateX"}half1=half=b.half;if(("up"==k[m]||"down"==k[m])&&"90"==b.flipAngle)half1=half=b.sliceHeight/2;else if(("left"==k[m]||"right"==k[m])&&"90"==b.flipAngle)half1=half=b.sliceWidth/2;m="@-webkit-keyframes translateSliceHolder"+d+" { 0% { -webkit-transform: translateZ(0px); } 50% { -webkit-transform: translateZ("+-parseInt(b.flipDepth)+"px); } 100% { -webkit-transform: translateZ(0px); } }";n="@-moz-keyframes translateSliceHolder"+d+" { 0%{ -moz-transform: translateZ(0px); } 50%{ -moz-transform: translateZ("+
-parseInt(b.flipDepth)+"px); } 100%{ -moz-transform: translateZ("+-parseInt(half1)+"px); } }";e+="@-webkit-keyframes sliceAnimation"+d+"_"+q+" { 0% { -webkit-transform: translateZ(-"+half+"px) "+f+"(0deg)  ;  } 100% { -webkit-transform: translateZ(-"+half+"px) "+f+"("+c+"deg) ; } }\n@-webkit-keyframes sliceAnimation"+d+"_"+q+"_reverse { 0% { -webkit-transform: translateZ(-"+half+"px) "+f+"(0deg)  ;  } 100% { -webkit-transform: translateZ(-"+half+"px) "+f+"("+-c+"deg) ; } }\n";h+="@-moz-keyframes sliceAnimation"+
d+"_"+q+" { 0% { -moz-transform: "+f+"(0deg) translateZ(-"+half+"px); } 100% { -moz-transform: "+f+"("+c+"deg) translateZ(0px); } }\n@-moz-keyframes sliceAnimation"+d+"_"+q+"_reverse { 0% { -moz-transform: "+f+"(0deg) translateZ(-"+half+"px); } 100% { -moz-transform: "+f+"("+-c+"deg) translateZ(0px); } }\n"}return m+"\n"+n+"\n"+e+"\n"+h+"\n@-webkit-keyframes sliceAnimationFront { 0% { opacity:1; } 49% { opacity:1; } 51% { opacity:0; } 100% { opacity:0; } }\n@-webkit-keyframes sliceAnimationBack { 0% { opacity:0; } 49% { opacity:0; } 51% { opacity:1; } 100% { opacity:1; } }"},
createSlideBoxDepth:function(b){var d=this.id,c=parseInt(b.flipBoxDepth),f=b.flipColor.replace("0x","#");b.width=this.json.slides.width;b.height=this.json.slides.height;var g=!0==this.directionReverse?0==CU3ER[d].current?CU3ER[d].slidesTotal-1:CU3ER[d].current-1:CU3ER[d].current,g=1==CU3ER[d].slidesTotal?0:g,g=CU3ER[d].slicesDirections[g][0],e=jQuery.extend(!0,{},CU3ER[d].jsonOriginal.defaults.slide,CU3ER[d].jsonOriginal.slides.slide[this.current]),h=jQuery.extend(!0,{},CU3ER[d].jsonOriginal.defaults.slide,
CU3ER[d].jsonOriginal.slides.slide[this.nextSlide]);if("undefined"!=e.transparent&&"true"==e.transparent||"undefined"!=h.transparent&&"true"==h.transparent)c=1,f="transparent !important";var m=h=c,n=calcTop=parseInt(h)/2,k=calcLeft=-(parseInt(h)/2);"90"==b.flipAngle&&("left"==g||"right"==g?(m=h=c=parseInt(b.width),n=calcTop=parseInt(c)/2,k=calcLeft=parseInt(c)/2):(m=h=c=parseInt(b.height),n=calcTop=-(parseInt(b.height)/2),k=calcLeft=-(parseInt(b.height)/2)));e=jQuery("#CU3ERSlide_"+this.current);
"transparent !important"!=f&&(jQuery(e).css({"-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"hidden","-moz-animation-timing-function":"ease-in-out","-webkit-transform-origin":"50% 50%","-moz-transform-origin":"50% 50%","-webkit-transform":"translateZ(-"+c/2+"px)","-moz-transform":"translateZ(-"+c/2+"px)",position:"relative",overflow:"visible"}),jQuery(".CU3ERslideImage",
jQuery(e)).css({"-webkit-transform":"translateZ("+c/2+"px)","-webkit-transform-style":"preserve-3d","-moz-transform":"translateZ("+c/2+"px)","-moz-transform-style":"preserve-3d","-webkit-transform-origin":"50% 50%","-moz-transform-origin":"50% 50%",width:CU3ER[d].jsonOriginal.slides.width+"px",height:CU3ER[d].jsonOriginal.slides.height+"px"}),jQuery(".CU3ERbox").css({"-moz-transform":"translateZ(-"+c/2+"px)","-webkit-transform":"translateZ(-"+c/2+"px)"}).empty(),jQuery(".CU3ERbox").append(jQuery("<div />").css({width:b.width+
"px",height:h+"px",position:"absolute","background-color":f,"-webkit-transform-origin":"50% 50%","-moz-transform-origin":"50% 50%","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"visible","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"visible","-moz-animation-timing-function":"ease-in-out",top:0,left:0,"-webkit-transform":"rotateX(90deg) translateZ("+calcTop+"px)","-moz-transform":"rotateX(90deg) translateZ("+
calcTop+"px)"})),jQuery(".CU3ERbox").append(jQuery("<div />").css({width:b.width+"px",height:c+"px",position:"absolute","background-color":f,"-webkit-transform-origin":"50% 50%","-moz-transform-origin":"50% 50%","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"visible","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"visible","-moz-animation-timing-function":"ease-in-out",bottom:0,left:0,top:"auto","-webkit-transform":"rotateX(-90deg) translateZ("+
n+"px)","-moz-transform":"rotateX(-90deg) translateZ("+n+"px)"})),jQuery(".CU3ERbox").append(jQuery("<div />").css({width:m+"px",height:b.height+"px",position:"absolute","background-color":f,"-webkit-transform-origin":"50% 50%","-moz-transform-origin":"50% 50%","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"visible","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"visible","-moz-animation-timing-function":"ease-in-out",
top:0,left:0,"-webkit-transform":"rotateY(90deg) translateZ("+calcLeft+"px)","-moz-transform":"rotateY(90deg) translateZ("+calcLeft+"px)"})),jQuery(".CU3ERbox").append(jQuery("<div />").css({width:m+"px",height:b.height+"px",position:"absolute","background-color":f,"-webkit-transform-origin":"50% 50%","-moz-transform-origin":"50% 50%","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"visible","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d",
"-moz-backface-visibility":"visible","-moz-animation-timing-function":"ease-in-out",top:0,right:0,left:"auto","-webkit-transform":"rotateY(-90deg) translateZ("+k+"px)","-moz-transform":"rotateY(-90deg) translateZ("+k+"px)"})))},drawSlides:function(b,d,c,f,g){var e=this.id,h=this.el,m=!1;if("undefined"==typeof b.slide.length){var n=b.slide;b.slide=[];b.slide[0]=n}var k={title:{x:0,y:0,width:90,height:62,font:"Arial",text_size:12,text_bold:"false",text_italic:"false",text_align:"left",text_leading:0,
text_letterspacing:0,use_caption:"false",use_heading:"false",use_numbering:"false",use_numbering_separator:".",tweenShow:{tint:"#ffffff",alpha:0.75},tweenOver:{tint:"#ffffff",alpha:1},tweenSelected:{tint:"#fffff0",alpha:0.75}}},n={flipDepth:"300",flipBoxDepth:"500",flipAngle:"180",flipOrder:"90"},o={time:5,color:"0x000000",transparent:"false",image:{align_pos:"TL",x:0,y:0,scaleX:1,scaleY:1}};if(CU3ER[e].is3D()){slides1=jQuery.extend(!0,{},d,b);this.originalJSONelements=b=jQuery.extend(d,b);for(i in CU3ER[e].json.slides.slide)if("number"==
typeof i||!isNaN(i))CU3ER[e].json.slides.slide[i].originalPosition=i;"true"==CU3ER[e].randomise&&(CU3ER[e].json.slides.slide=jQuery.shuffle(CU3ER[e].json.slides.slide));if("undefined"!=typeof g&&!0==g.vars.reverse||"true"==b.reverse)CU3ER[e].json.slides.slide=CU3ER[e].json.slides.slide.reverse(),CU3ER[e].json.slides.transition=CU3ER[e].json.slides.transition.reverse();for(i in CU3ER[e].json.slides.slide)if("number"==typeof i||!isNaN(i))CU3ER[e].slidesOrder[i]=parseInt(CU3ER[e].json.slides.slide[i].originalPosition)+
1;"undefined"!=typeof f&&(f=jQuery.extend(k,f));"undefined"!=typeof f&&(g="stage"==f.align_to?this.stage:this.slides,jQuery(g).append('<div class="CU3ERthumbs"><div class="CU3ERThumbsScroll"><div class="CU3ERthumbsBG"></div><div class="CU3ERthumbs-holder"></div></div></div>'));"undefined"==typeof CU3ER[e].json.settings.camera&&(CU3ER[e].json.settings=jQuery.extend({camera:{x:0,y:0,z:0,angleX:0,angleY:0,angleZ:0,lend:8}},CU3ER[e].json.settings));var d="undefined"!=typeof CU3ER[e].json.custom.x?CU3ER[e].json.custom.x:
CU3ER[e].json.settings.camera.x,g="undefined"!=typeof CU3ER[e].json.custom.y?CU3ER[e].json.custom.y:-parseFloat(CU3ER[e].json.settings.camera.y),k="undefined"!=typeof CU3ER[e].json.custom.z?CU3ER[e].json.custom.z:CU3ER[e].json.settings.camera.z,q="undefined"!=typeof CU3ER[e].json.custom.angleX?CU3ER[e].json.custom.angleX:CU3ER[e].json.settings.camera.angleX,t="undefined"!=typeof CU3ER[e].json.custom.angleY?CU3ER[e].json.custom.angleY:parseFloat(CU3ER[e].json.settings.camera.angleY),r="undefined"!=
typeof CU3ER[e].json.custom.angleZ?CU3ER[e].json.custom.angleZ:CU3ER[e].json.settings.camera.angleZ,s="undefined"!=typeof CU3ER[e].json.custom.lens?CU3ER[e].json.custom.lens:100*parseInt(CU3ER[e].json.settings.camera.lens),d="undefined"==typeof d||isNaN(d)?0:d,g="undefined"==typeof g||isNaN(g)?0:g,k="undefined"==typeof k||isNaN(k)?0:k,q="undefined"==typeof q||isNaN(q)?0:q,t="undefined"==typeof t||isNaN(t)?0:t,r="undefined"==typeof r||isNaN(r)?0:r,s="undefined"==typeof s||isNaN(s)?800:s,p,v,w,u;p=
Math.PI/180;v=-q;w=t;u=r;var B;v=$M([[1,0,0,0],[0,Math.cos(v*p),Math.sin(-v*p),0],[0,Math.sin(v*p),Math.cos(v*p),0],[0,0,0,1]]);w=$M([[Math.cos(w*p),0,Math.sin(w*p),0],[0,1,0,0],[Math.sin(-w*p),0,Math.cos(w*p),0],[0,0,0,1]]);p=$M([[Math.cos(u*p),Math.sin(-u*p),0,0],[Math.sin(u*p),Math.cos(u*p),0,0],[0,0,1,0],[0,0,0,1]]);u=1;u=$M([[u,0,0,0],[0,u,0,0],[0,0,u,0],[0,0,0,1]]);B=$M([[1,0,0,0],[0,1,0,0],[0,0,1,0],[d,g,k,1]]);v=v.x(w).x(p).x(u).x(B);u="matrix3d("+(v.e(1,1).toFixed(10)+","+v.e(1,2).toFixed(10)+
","+v.e(1,3)+","+v.e(1,4).toFixed(10)+",");u+=v.e(2,1).toFixed(10)+","+v.e(2,2).toFixed(10)+","+v.e(2,3)+","+v.e(2,4).toFixed(10)+",";u+=v.e(3,1).toFixed(10)+","+v.e(3,2).toFixed(10)+","+v.e(3,3)+","+v.e(3,4).toFixed(10)+",";u+=v.e(4,1).toFixed(10)+","+v.e(4,2).toFixed(10)+","+v.e(4,3)+","+v.e(4,4).toFixed(10);u+=")";d="@-webkit-keyframes translateHolder { from { -webkit-transform: translateX("+d+"px) translateY("+g+"px) translateZ("+k+"px) rotate3d("+q+", "+t+", "+r+", "+t+"deg); } 50% {-webkit-transform: translateX("+
d+"px) translateY("+g+"px) translateZ(-250px) rotate3d("+q+", "+t+", "+r+", "+t+"deg); } to {-webkit-transform: translateX("+d+"px) translateY("+g+"px) translateZ("+k+"px) rotate3d("+q+", "+t+", "+r+", 0deg);} } @-moz-keyframes translateHolder { from { -moz-transform: translateX("+d+"px) translateY("+g+"px) translateZ("+k+"px) rotate3d("+q+", "+t+", "+r+", "+t+"deg); } 50% {-moz-transform: translateX("+d+"px) translateY("+g+"px) translateZ(-250px) rotate3d("+q+", "+t+", "+r+", "+t+"deg); } to {-moz-transform: translateX("+
d+"px) translateY("+g+"px) translateZ("+k+"px) rotate3d("+q+", "+t+", "+r+", 0deg);} }";try{var A=document.styleSheets,x=A[A.length-1],y=x.cssRules.length;x.cssRules[y]=d;y++}catch(D){x=""}jQuery(".CU3ERslides",h).css({"-webkit-perspective":s+"px","-moz-perspective":s+"px"}).find(".CU3ERslides-holder").css({"-webkit-transform":u,"-moz-transform":u}).parent().css({"-webkit-perspective-origin":"50% 50%","-moz-perspective-origin":"50% 50%"}).find(".CU3ERtransition-holder").css({"-webkit-transform":u,
"-moz-transform":u}).parent().find(".CU3ERbox").css({width:b.width+"px",height:b.height+"px","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"visible","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"visible","-moz-animation-timing-function":"ease-in-out"}).parent().css({"-webkit-transform":u,"-moz-transform":u,width:b.width+"px",height:b.height+"px","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"visible",
"-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"visible","-moz-animation-timing-function":"ease-in-out"});A=document.createElement("style");for(i in b.slide)if("number"==typeof i||!isNaN(i)){"undefined"==typeof CU3ER[e].jsonOriginal.slides.slide.length?(s=jQuery.extend(!0,{},o,CU3ER[e].jsonOriginal.defaults.slide,CU3ER[e].jsonOriginal.slides.slide),y=jQuery.extend(!0,{},n,CU3ER[e].jsonOriginal.defaults.transition,CU3ER[e].jsonOriginal.slides.transition)):
(s=jQuery.extend(!0,{},o,CU3ER[e].jsonOriginal.defaults.slide,CU3ER[e].jsonOriginal.slides.slide[i],CU3ER[e].json.slides.slide[i]),y=jQuery.extend(!0,{},n,CU3ER[e].jsonOriginal.defaults.transition,CU3ER[e].jsonOriginal.slides.transition[i],CU3ER[e].json.slides.transition[i]));y.width=CU3ER[e].jsonOriginal.slides.width;y.height=CU3ER[e].jsonOriginal.slides.height;d=parseInt(y.flipBoxDepth);if("90"==y.flipAngle&&("left"==y.flipDirection||"right"==y.flipDirection))d=y.width;else if("90"==y.flipAngle&&
("up"==y.flipDirection||"down"==y.flipDirection))d=y.height;y.half=d/2;y.sliceWidth=parseInt(y.width)/parseInt(y.columns);y.sliceHeight=parseInt(y.height)/parseInt(y.rows);y=CU3ER[e].createSlices3DcssAnimation(y,i);try{A.innerHTML+=y+"\n",x.insertRule(slicesHolderAnimation,x.cssRules.length)}catch(z){}w=/https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?/;w=w.test(b.slide[i].url)?b.slide[i].url:c.folder_images+"/"+b.slide[i].url;g=parseFloat(s.image.scaleX);k=parseFloat(s.image.scaleY);q="";"undefined"!=
typeof b.slide[i].color?q=' style="background-color:'+b.slide[i].color.replace("0x","#")+';"':"undefined"!=typeof slides1.slide.color&&(q=' style="background-color:'+slides1.slide.color.replace("0x","#")+';"');"true"==b.slide[i].transparent?q=' style="background-color: transparent;"':"true"==slides1.slide.transparent&&(q=' style="background-color: transparent;"');t="undefined"!=typeof b.slide[i].link&&("string"==typeof b.slide[i].link||"undefined"!=typeof b.slide[i].link.text)?"undefined"!=typeof b.slide[i].link.text?
b.slide[i].link.text:b.slide[i].link:"undefined"!=typeof CU3ER[e].jsonOriginal.defaults.slide.link&&"undefined"!=typeof CU3ER[e].jsonOriginal.defaults.slide.link.text?CU3ER[e].jsonOriginal.defaults.slide.link.text:"#";r="undefined"!=typeof b.slide[i].link&&"undefined"!=typeof b.slide[i].link.target&&"#"!=t?' target="'+b.slide[i].link.target+'"':"undefined"!=typeof CU3ER[e].jsonOriginal.defaults.slide.link&&"undefined"!=typeof CU3ER[e].jsonOriginal.defaults.slide.link.target&&"#"!=t?' target="'+CU3ER[e].jsonOriginal.defaults.slide.link.target+
'"':"";v="#"!=t?' style="width:'+b.width+"px;height:"+b.height+'px;display:block;"':' style="cursor:default !important;"';"undefined"!=typeof b.slide[i].use_image&&"false"==b.slide[i].use_image?jQuery(".CU3ERslides-holder",h).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide"'+q+'><div class="CU3ERslideImage"'+q+'><a href="'+t+'"'+r+v+"><img /></a></div></div>"):jQuery(".CU3ERslides-holder",h).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide notLoaded"'+q+'><div class="CU3ERslideImage"'+q+
'><a href="'+t+'"'+r+v+'><img src="'+w+'" rel="'+g+":"+k+":"+s.image.x+":"+s.image.y+":"+s.image.align_pos+":"+s.image.fit+'" /></a></div></div>').find("#CU3ERSlide_"+i+" img").bind("load",function(){var c=this.width,d=this.height,f=jQuery(this)[0],g=jQuery(f).attr("rel").split(":");jQuery("<img/>").attr("src",jQuery(f).attr("src")).load(function(){var h=g[5];if(g[5]=="inside"){g[0]=g[1]=1/Math.max(c/parseInt(b.width),d/parseInt(b.height));var o=parseFloat(g[0])*c,k=parseFloat(g[1])*d}else if(g[5]==
"outside"){g[0]=g[1]=1/Math.min(c/parseInt(b.width),d/parseInt(b.height));o=parseFloat(g[0])*c;k=parseFloat(g[1])*d}else{c!=this.width&&(g[0]=Math.round(this.width*g[0]/c*100)/100);o=c*parseFloat(g[0]);d!=this.height&&(g[1]=Math.round(this.height*g[1]/d*100)/100);k=d*parseFloat(g[1])}o=Math.round(o);k=Math.round(k);optionsImage={align_pos:g[4],x:g[2],y:g[3],fullWidth:b.width,fullHeight:b.height,width:o,height:k};g[5]=this.width;g[6]=this.height;g[7]=h;h=CU3ER[e].calculatePosition(optionsImage);h.position=
"relative";if(g[0]!=1){o=Math.round((g[0]+0.004)*Math.pow(10,2))/Math.pow(10,2);g[0]=!isNaN(o)?o:g[0]}if(g[1]!=1){o=Math.round((g[1]+0.004)*Math.pow(10,2))/Math.pow(10,2);g[1]=!isNaN(o)?o:g[1]}o=g.join(":");jQuery(f).css({WebkitTransform:"scaleX("+g[0]+") scaleY("+g[1]+")","WebkitTransform-origin":"top left",MozTransform:"scaleX("+g[0]+") scaleY("+g[1]+")","MozTransform-origin":"top left"}).css(h).attr("rel",o).parent().parent().parent().removeClass("notLoaded").trigger("classChanged");if(jQuery(f).parent().parent().parent().attr("id").split("_")[1]==
CU3ER[e].no){m=true;CU3ER[e].updateIndicator(++CU3ER[e].a,CU3ER[e].totalInd,CU3ER[e].stage+" .CU3ERindicator",true);CU3ER[e].debug("first slide loaded")}})});g={};"undefined"!=typeof f&&(k="","undefined"!=typeof f.thumb&&"undefined"!=typeof f.thumb.title&&("undefined"!=typeof f.thumb.title.use_numbering&&"true"==f.thumb.title.use_numbering&&(k+=parseInt(i)+1+f.thumb.title.use_numbering_separator+" "),"undefined"!=typeof f.thumb.title.use_heading&&"true"==f.thumb.title.use_heading&&"undefined"!=typeof b.slide[i].description&&
(k+="undefined"!=typeof b.slide[i].description.heading?b.slide[i].description.heading+" ":""),"undefined"!=typeof f.thumb.title.use_caption&&"true"==f.thumb.title.use_caption&&"undefined"!=typeof b.slide[i].caption&&(k+="undefined"!=typeof b.slide[i].caption?b.slide[i].caption+" ":""),""!=k&&(k='<div class="CU3ERtitle">'+k+"</div>",g.position="absolute",g.left=parseInt(f.thumb.title.x)+"px",g.top=parseInt(f.thumb.title.y)+"px",g.width=f.thumb.title.width+"px",g.height=f.thumb.title.height+"px",g.opacity=
f.thumb.title.tweenShow.alpha,g.color=f.thumb.title.tweenShow.tint.replace("0x","#"),g.fontSize=f.thumb.title.text_size+"px",g.fontFamily='"'+f.thumb.title.font+'"',g.fontWeight="true"==f.thumb.title.text_bold?"bold":"normal",g.fontStyle="true"==f.thumb.title.text_italic?"italic":"normal",g.textAlign=f.thumb.title.text_align,k.textDecoration="none",g.overflow="hidden",g.lineHeight="undefined"!=typeof f.thumb.title.text_leading&&0<f.thumb.title.text_leading?parseInt(f.thumb.title.text_leading)+parseInt(f.thumb.title.text_size)+
"px":f.thumb.title.text_size+"px","undefined"!=typeof f.thumb.title.text_letterspacing&&0<f.thumb.title.text_letterspacing&&(g.letterSpacing=f.thumb.title.text_letterspacing+"px"))),"undefined"!=typeof f.thumb&&"undefined"!=typeof f.thumb.image?(y=CU3ER[e].imgFallbackFolder+"/fallback/thumb_slide"+(parseInt(b.slide[i].originalPosition)+1)+".png",jQuery(".CU3ERthumbs-holder",h).append('<div class="CU3ERThumb"><div class="CU3ERThumbBG"></div><a href="#" title=""><div width="'+f.thumb.width+'" height="'+
f.thumb.height+'" style="background: url(\''+y+'\') no-repeat top left;"><img src="'+y+'" /></div>'+k+"</a></div>")):jQuery(".CU3ERthumbs-holder",h).append('<div class="CU3ERThumb"><div class="CU3ERThumbBG"></div><a href="#" title="">'+k+"</a></div>"),jQuery(".CU3ERtitle",h).css(g).hover(function(){jQuery(this).css({color:f.thumb.title.tweenOver.tint.replace("0x","#")})},function(){jQuery(this).css({color:f.thumb.title.tweenShow.tint.replace("0x","#")})}))}document.body.appendChild(A);this.slidesTotal=
b.slide.length;"undefined"!=typeof f&&this.drawThumbnails(f);images=jQuery(".CU3ERslides-holder div.CU3ERslide img",h);optionsSlides={align_pos:b.align_pos,x:b.x,y:b.y,width:b.width,height:b.height,fullWidth:jQuery(CU3ER[e].stage).width(),fullHeight:jQuery(CU3ER[e].stage).height()};cssSlides=this.calculatePosition(optionsSlides);jQuery(CU3ER[e].slides).css(cssSlides).css("z-index",415).find(".CU3ERbox-holder").css({width:b.width+"px",height:b.height+"px",position:"absolute",top:0,left:0}).parent().find(".CU3ERtransition-holder").css({width:b.width+
"px",height:b.height+"px",position:"absolute",top:0,left:0}).parent().find(".CU3ERslides-holder").css({width:b.width+"px",height:b.height+"px",position:"absolute",top:0,left:0}).find(".CU3ERslide").css({width:b.width+"px",height:b.height+"px",display:"block",overflow:"hidden"}).find(".CU3ERSlideImage").css({width:b.width+"px",height:b.height+"px",overflow:"hidden"})}else{this.originalJSONelements=b=jQuery.extend(d,b);for(i in CU3ER[e].json.slides.slide)CU3ER[e].json.slides.slide[i].originalPosition=
i;"true"==CU3ER[e].randomise&&(CU3ER[e].json.slides.slide=jQuery.shuffle(CU3ER[e].json.slides.slide));if("undefined"!=typeof g&&!0==g.vars.reverse||"true"==b.reverse)CU3ER[e].json.slides.slide=CU3ER[e].json.slides.slide.reverse(),CU3ER[e].json.slides.transition=CU3ER[e].json.slides.transition.reverse();for(i in CU3ER[e].json.slides.slide)CU3ER[e].slidesOrder[i]=parseInt(CU3ER[e].json.slides.slide[i].originalPosition)+1;"undefined"!=typeof f&&(f=jQuery.extend(k,f));"undefined"!=typeof f&&(g="stage"==
f.align_to?this.stage:this.slides,jQuery(g).append('<div class="CU3ERthumbs"><div class="CU3ERThumbsScroll"><div class="CU3ERthumbsBG"></div><div class="CU3ERthumbs-holder"></div></div></div>'));for(i in b.slide)if("number"==typeof i||!isNaN(i))if(CU3ER[e].isCameraFlat()?("undefined"==typeof CU3ER[e].jsonOriginal.slides.slide.length?(s=jQuery.extend(!0,{},o,CU3ER[e].jsonOriginal.defaults.slide,CU3ER[e].jsonOriginal.slides.slide),y=jQuery.extend(!0,{},n,CU3ER[e].jsonOriginal.defaults.transition,CU3ER[e].jsonOriginal.slides.transition)):
(s=jQuery.extend(!0,{},o,CU3ER[e].jsonOriginal.defaults.slide,CU3ER[e].jsonOriginal.slides.slide[i],CU3ER[e].json.slides.slide[i]),y=jQuery.extend(!0,{},n,CU3ER[e].jsonOriginal.defaults.transition,CU3ER[e].jsonOriginal.slides.transition[i],CU3ER[e].json.slides.transition[i])),w="slide"+(parseInt(i)+1)+".png",y=CU3ER[e].imgFallbackFolder+"/fallback/thumb_slide"+(parseInt(i)+1)+".png",q=""):(b.slide[i].url="slide"+(parseInt(i)+1)+".png",w=CU3ER[e].imgFallbackFolder+"/fallback/"+b.slide[i].url,y=CU3ER[e].imgFallbackFolder+
"/fallback/thumb_"+b.slide[i].url),"undefined"!=typeof b.slide[i].link?(t="undefined"!=typeof b.slide[i].link&&("string"==typeof b.slide[i].link||"undefined"!=typeof b.slide[i].link.text)?"undefined"!=typeof b.slide[i].link.text?b.slide[i].link.text:b.slide[i].link:"undefined"!=typeof CU3ER[e].jsonOriginal.defaults.slide.link&&"undefined"!=typeof CU3ER[e].jsonOriginal.defaults.slide.link.text?CU3ER[e].jsonOriginal.defaults.slide.link.text:"#",r="undefined"!=typeof b.slide[i].link.target?' target="'+
b.slide[i].link.target+'"':"undefined"!=typeof CU3ER[e].jsonOriginal.defaults.slide.link.target?' target="'+CU3ER[e].jsonOriginal.defaults.slide.link.target+'"':""):(t="#",r=""),CU3ER[e].isCameraFlat()?(slides1=jQuery.extend(!0,{},d,b),g=parseFloat(s.image.scaleX),k=parseFloat(s.image.scaleY),q="undefined"!=typeof b.slide[i].color?' style="background-color:'+b.slide[i].color.replace("0x","#")+"; width:"+b.width+"px; height:"+b.height+'px;"':"undefined"!=typeof slides1.slide.color?' style="background-color:'+
slides1.slide.color.replace("0x","#")+"; width:"+b.width+"px; height:"+b.height+'px;"':"undefined"!=typeof s.color?' style="background-color: '+s.color.replace("0x","#")+"; width:"+b.width+"px; height:"+b.height+'px;"':' style="background-color: #000; width:'+b.width+"px; height:"+b.height+'px;"',"true"==b.slide[i].transparent?q=' style="background-color: transparent;"':"true"==slides1.slide.transparent?q=' style="background-color: transparent;"':"true"==s.transparent&&(q=' style="background-color: transparent;"'),
v="#"!=t?' style="width:'+b.width+"px;height:"+b.height+'px;display:block;"':' style="cursor:default !important;"',"undefined"!=typeof b.slide[i].use_image&&"false"==b.slide[i].use_image?jQuery(".CU3ERslides-holder",h).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide"'+q+'><a href="'+t+'"'+r+v+"><img /></a></div>"):(w=/https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?/,w=w.test(b.slide[i].url)?b.slide[i].url:c.folder_images+"/"+b.slide[i].url,jQuery(".CU3ERslides-holder",h).append('<div id="CU3ERSlide_'+
i+'" class="CU3ERslide notLoaded"'+q+'><a href="'+t+'"'+r+v+'><img rel="'+g+":"+k+":"+s.image.x+":"+s.image.y+":"+s.image.align_pos+":"+s.image.fit+'" /></a></div>').find("#CU3ERSlide_"+i+" img").bind("load",function(){var c=this.width,d=this.height,f=jQuery(this)[0],g=jQuery(f).attr("rel").split(":");jQuery("<img>").attr("src",jQuery(f).attr("src")).load(function(){var m=g[5];if(g[5]=="inside"){g[0]=g[1]=1/Math.max(c/parseInt(b.width),d/parseInt(b.height));var h=g[0]*c,o=g[0]*d}else if(g[5]=="outside"){g[0]=
g[1]=1/Math.min(c/parseInt(b.width),d/parseInt(b.height));h=g[0]*c;o=g[0]*d}else{c!=this.width&&(g[0]=Math.round(this.width*g[0]/c*100)/100);h=c*parseFloat(g[0]);d!=this.height&&(g[1]=Math.round(this.height*g[1]/d*100)/100);o=d*parseFloat(g[1])}optionsImage={align_pos:g[4],x:g[2],y:g[3],fullWidth:b.width,fullHeight:b.height,width:h,height:o};if(!isNaN(this.width)&&!isNaN(this.height)){g[5]=this.width;g[6]=this.height;g[7]=m}m=CU3ER[e].calculatePosition(optionsImage);m.position="relative";var k=g.join(":");
jQuery(f).css({width:h+"px",height:o+"px"}).css(m).attr("rel",k);jQuery(f).parent().parent().removeClass("notLoaded").trigger("classChanged")});if(jQuery.browser.msie){var m=g[5];if(g[5]=="inside"){g[0]=g[1]=1/Math.max(c/parseInt(b.width),d/parseInt(b.height));var h=g[0]*c,o=g[0]*d}else if(g[5]=="outside"){g[0]=g[1]=1/Math.min(c/parseInt(b.width),d/parseInt(b.height));h=g[0]*c;o=g[0]*d}else{jQuery(this).width()!=this.width&&(g[0]=Math.round(this.width*g[0]/c*Math.pow(10,2))/Math.pow(10,2));h=c*parseFloat(g[0]);
jQuery(this).height()!=this.height&&(g[1]=Math.round(this.height*g[1]/d*Math.pow(10,2))/Math.pow(10,2));o=d*parseFloat(g[1])}h=Math.round((h+0.004)*Math.pow(10,2))/Math.pow(10,2);o=Math.round((o+0.004)*Math.pow(10,2))/Math.pow(10,2);optionsImage={align_pos:g[4],x:g[2],y:g[3],fullWidth:b.width,fullHeight:b.height,width:h,height:o};if(!isNaN(this.width)&&!isNaN(this.height)){g[5]=this.width;g[6]=this.height;g[7]=m}m=CU3ER[e].calculatePosition(optionsImage);m.position="relative";var k=g.join(":");jQuery(f).css({width:h+
"px",height:o+"px"}).css(m).attr("rel",k);jQuery(f).parent().parent().removeClass("notLoaded")}jQuery(this).parent().parent().removeClass("notLoaded")}).attr("src",w))):"#"!=t?(r="undefined"==typeof b.slide[i].link.target?"_blank":b.slide[i].link.target,jQuery(".CU3ERslides-holder",h).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide notLoaded"><a href="'+t+'" target="'+r+'"><img src="'+w+'" alt="" /></a></div>').find(".CU3ERslide img").bind("load",function(){jQuery(this).parent().parent().removeClass("notLoaded").trigger("classChanged");
if(jQuery(this).parent().parent().attr("id").split("_")[1]==CU3ER[e].no){m=true;CU3ER[e].updateIndicator(++CU3ER[e].a,CU3ER[e].totalInd,CU3ER[e].stage+" .CU3ERindicator",true);CU3ER[e].debug("first slide loaded")}})):jQuery(".CU3ERslides-holder",h).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide notLoaded"><img src="'+w+'" alt="" /></div>').find(".CU3ERslide img").bind("load",function(){jQuery(this).parent().removeClass("notLoaded").trigger("classChanged");if(jQuery(this).parent().attr("id").split("_")[1]==
CU3ER[e].no){m=true;CU3ER[e].updateIndicator(++CU3ER[e].a,CU3ER[e].totalInd,CU3ER[e].stage+" .CU3ERindicator",true);CU3ER[e].debug("first slide loaded")}}),g={},"undefined"!=typeof f)k="","undefined"!=typeof f.thumb&&"undefined"!=typeof f.thumb.title&&("undefined"!=typeof f.thumb.title.use_numbering&&"true"==f.thumb.title.use_numbering&&(k+=parseInt(i)+1+f.thumb.title.use_numbering_separator+" "),"undefined"!=typeof f.thumb.title.use_heading&&"true"==f.thumb.title.use_heading&&"undefined"!=typeof b.slide[i].description&&
(k+="undefined"!=typeof b.slide[i].description.heading?b.slide[i].description.heading+" ":""),"undefined"!=typeof f.thumb.title.use_caption&&"true"==f.thumb.title.use_caption&&"undefined"!=typeof b.slide[i].caption&&(k+="undefined"!=typeof b.slide[i].caption?b.slide[i].caption+" ":""),""!=k&&(k='<div class="CU3ERtitle">'+k+"</div>",g.position="absolute",g.left=parseInt(f.thumb.title.x)+"px",g.top=parseInt(f.thumb.title.y)+"px",g.width=f.thumb.title.width+"px",g.height=f.thumb.title.height+"px",g.opacity=
f.thumb.title.tweenShow.alpha,g.color=f.thumb.title.tweenShow.tint.replace("0x","#"),g.fontSize=f.thumb.title.text_size+"px",g.fontFamily='"'+f.thumb.title.font+'"',g.fontWeight="true"==f.thumb.title.text_bold?"bold":"normal",g.fontStyle="true"==f.thumb.title.text_italic?"italic":"normal",g.textAlign=f.thumb.title.text_align,k.textDecoration="none",g.overflow="hidden",g.lineHeight="undefined"!=typeof f.thumb.title.text_leading&&0<f.thumb.title.text_leading?parseInt(f.thumb.title.text_leading)+parseInt(f.thumb.title.text_size)+
"px":f.thumb.title.text_size+"px","undefined"!=typeof f.thumb.title.text_letterspacing&&0<f.thumb.title.text_letterspacing&&(g.letterSpacing=f.thumb.title.text_letterspacing+"px"))),"undefined"!=typeof f.thumb&&"undefined"!=typeof f.thumb.image?jQuery(".CU3ERthumbs-holder",h).append('<div class="CU3ERThumb"><div class="CU3ERThumbBG"></div><a href="#" title=""><div class="CU3ERThumbImage" width="'+f.thumb.width+'" height="'+f.thumb.height+'" style="background: url(\''+y+'\') no-repeat top left;"><img src="'+
y+'" /></div>'+k+"</a></div>"):jQuery(".CU3ERthumbs-holder",h).append('<div class="CU3ERThumb"><div class="CU3ERThumbBG"></div><a href="#" title="">'+k+"</a></div>"),jQuery(".CU3ERtitle",h).css(g).hover(function(){jQuery(this).css({color:f.thumb.title.tweenOver.tint.replace("0x","#")})},function(){jQuery(this).css({color:f.thumb.title.tweenShow.tint.replace("0x","#")})});this.slidesTotal=b.slide.length;"undefined"!=typeof f&&this.drawThumbnails(f);images=jQuery(".CU3ERslides-holder div.CU3ERslide img",
h);jQuery(images[CU3ER[e].current]).bind("load",function(){m=true;CU3ER[e].updateIndicator(++CU3ER[e].a,CU3ER[e].totalInd,CU3ER[e].stage+" .CU3ERindicator",true);CU3ER[e].debug("first slide loaded")});optionsSlides={align_pos:b.align_pos,x:b.x,y:b.y,width:b.width,height:b.height,fullWidth:CU3ER[e].json.settings.width,fullHeight:CU3ER[e].json.settings.height};cssSlides=this.calculatePosition(optionsSlides);jQuery(CU3ER[e].slides).css(cssSlides).find(".CU3ERslides-holder").css({width:b.width+"px",height:b.height+
"px",position:"absolute",top:0,left:0}).parent().find(".CU3ERtransition-holder").css({width:b.width+"px",height:b.height+"px",position:"absolute",top:0,left:0})}c=jQuery(".CU3ERslide",h);!jQuery(c[CU3ER[e].current]).hasClass("notLoaded")&&!1==m&&(m=!0,CU3ER[e].updateIndicator(++CU3ER[e].a,CU3ER[e].totalInd,CU3ER[e].stage+" .CU3ERindicator",!0),CU3ER[e].debug("first slide loaded"));jQuery(".CU3ERslide a",h).bind("mouseover",function(){jQuery(this).css("backgroundColor","transparent")});jQuery(".CU3ERSlideImage",
h).css({width:b.width+"px",height:b.height+"px"})},drawCircularProgressBar:function(b){var d=this.id,c=this.el;this.stopFlag=!1;clearTimeout(this.circularPBOptions.tempTimeout);var f="stage"==b.align_to?this.stage:this.slides,g=2*parseInt(this.circularPBOptions.radius)+parseInt(this.circularPBOptions.padding);jQuery(".CU3ERindicator",c).remove();jQuery(f).append('<div class="CU3ERindicator"><canvas id="CU3ERprogressbar" width="'+(g+3)+'" height="'+(g+3)+'"></canvas></div>');var e=this.circularPBOptions.color1.replace("0x",
""),h=this.circularPBOptions.color2.replace("0x",""),f=this.circularPBOptions.opacity2,m=document.getElementById("CU3ERprogressbar").getContext("2d");m.beginPath();m.lineWidth=this.circularPBOptions.radius;var n=parseInt(e.substr(0,2),16),k=parseInt(e.substr(2,2),16),e=parseInt(e.substr(4,2),16);m.strokeStyle="rgba("+n+", "+k+", "+e+", "+this.circularPBOptions.opacity1+")";m.arc(this.circularPBOptions.radius,this.circularPBOptions.radius,this.circularPBOptions.radius/2,2*Math.PI,0,!0);m.stroke();
m.closePath();m.beginPath();n=this.circularPBOptions.radius-this.circularPBOptions.padding;n=0>n?-n:n;m.lineWidth=n;k=parseInt(h.substr(0,2),16);e=parseInt(h.substr(2,2),16);h=parseInt(h.substr(4,2),16);m.strokeStyle="rgba("+k+", "+e+", "+h+", "+f+")";m.arc(this.circularPBOptions.radius,this.circularPBOptions.radius,n/2,2*Math.PI,0,!1);m.stroke();m.closePath();clearTimeout(this.circularPBOptions.tempTimeout);this.startCircularProgressbar(this.circularPBOptions);"stage"==b.align_to?(f=this.json.settings.width,
m=this.json.settings.height):(f=this.json.slides.width,m=this.json.slides.height);optionsProgress={align_pos:b.align_pos,x:b.posX,y:b.posY,width:g-3,height:g,fullWidth:f,fullHeight:m};cssProgress=this.calculatePosition(optionsProgress);jQuery(".CU3ERindicator",c).css({width:2*parseInt(b.radius)+parseInt(b.padding)+"px",height:2*parseInt(b.radius)+parseInt(b.padding)+"px",position:"absolute",background:"transparent","z-index":470,opacity:1,cursor:"pointer","-webkit-transform":"rotateZ(-90deg) translateZ(3px)",
"-moz-transform":"rotate(-90deg)","-moz-transform":"rotateZ(-90deg) translateZ(3px)",transform:"rotate(-90deg)","-o-transform":"rotate(-90deg)"}).css(cssProgress).hover(function(){CU3ER[d].circularPBOptions.color2=b.colorLoaderHover.replace("0x","");CU3ER[d].circularPBOptions.opacity1=b.hoverAlpha;CU3ER[d].changeColorOnCircularProgressbar(CU3ER[d].circularPBOptions)},function(){CU3ER[d].circularPBOptions.color2=b.colorLoader.replace("0x","");CU3ER[d].circularPBOptions.opacity1=b.bgAlpha;CU3ER[d].changeColorOnCircularProgressbar(CU3ER[d].circularPBOptions)})},
startCircularProgressbar:function(b,d){var c=this.id,f="undefined"!=typeof d?d:!1,g=Math.ceil(this.sleepDuration/35);this.degMovement=Math.ceil(360/g);var g=b.startPoint*Math.PI/180,e=b.endPoint*Math.PI/180,h=this.circularPBOptions.color1.replace("0x",""),m=this.circularPBOptions.color2.replace("0x",""),n=this.circularPBOptions.opacity1,k=this.circularPBOptions.opacity2,o=document.getElementById("CU3ERprogressbar").getContext("2d"),q=2*parseInt(this.circularPBOptions.radius)+parseInt(this.circularPBOptions.padding);
o.clearRect(0,0,q+3,q+3);o.beginPath();o.width=2*b.radius;o.height=2*b.radius;o.lineWidth=b.radius;var q=parseInt(h.substr(0,2),16),t=parseInt(h.substr(2,2),16),h=parseInt(h.substr(4,2),16);o.strokeStyle="rgba("+q+", "+t+", "+h+", "+n+")";o.arc(b.radius,b.radius,b.radius/2,2*Math.PI,0,!0);o.stroke();o.closePath();o.beginPath();o.lineWidth=b.radius-b.padding;n=parseInt(m.substr(0,2),16);h=parseInt(m.substr(2,2),16);m=parseInt(m.substr(4,2),16);q=b.radius-b.padding;o.strokeStyle="rgba("+n+", "+h+", "+
m+", "+k+")";o.arc(b.radius,b.radius,(0>q?-q:q)/2,g,e,!1);o.stroke();o.closePath();this.circularPBOptions.endPoint=b.endPoint+this.degMovement;365>=this.circularPBOptions.endPoint?!1==this.stopFlag&&(this.circularPBOptions.tempTimeout=setTimeout(function(){CU3ER[c].startCircularProgressbar(CU3ER[c].circularPBOptions,f)},30)):(CU3ER[c].circularPBOptions.endPoint=0,f&&CU3ER[c].skipTo(CU3ER[c].calculateNext(CU3ER[c].current),!0,!0))},animateCircularProgressbarTo:function(b){var d=b.startPoint*Math.PI/
180,c=b.endDeg*Math.PI/180,f=this.circularPBOptions.color1.replace("0x",""),g=this.circularPBOptions.color2.replace("0x",""),e=this.circularPBOptions.opacity1,h=this.circularPBOptions.opacity2,m=document.getElementById("CU3ERprogressbar").getContext("2d"),n=2*parseInt(this.circularPBOptions.radius)+parseInt(this.circularPBOptions.padding);m.clearRect(0,0,n+3,n+3);m.beginPath();n=this.circularPBOptions.radius-this.circularPBOptions.padding;m.width=2*b.radius;m.height=2*b.radius;m.lineWidth=b.radius;
var n=parseInt(f.substr(0,2),16),k=parseInt(f.substr(2,2),16),f=parseInt(f.substr(4,2),16);m.strokeStyle="rgba("+n+", "+k+", "+f+", "+e+")";m.arc(b.radius,b.radius,b.radius/2,2*Math.PI,0,!0);m.stroke();m.closePath();m.beginPath();m.lineWidth=b.radius-b.padding;e=parseInt(g.substr(0,2),16);f=parseInt(g.substr(2,2),16);g=parseInt(g.substr(4,2),16);n=b.radius-b.padding;m.strokeStyle="rgba("+e+", "+f+", "+g+", "+h+")";m.arc(b.radius,b.radius,(0>n?-n:n)/2,d,c,!1);m.stroke();m.closePath()},stopCircularProgressbar:function(){clearTimeout(this.circularPBOptions.tempTimeout);
clearTimeout(this.tempTimeout[this.current]);this.stopFlag=!0;this.circularPBOptions.endPoint-=this.degMovement;clearTimeout(this.circularPBOptions.tempTimeout)},changeColorOnCircularProgressbar:function(b){var d=b.startPoint*Math.PI/180,c=b.endPoint*Math.PI/180,f=this.circularPBOptions.color1.replace("0x",""),g=this.circularPBOptions.color2.replace("0x",""),e=this.circularPBOptions.opacity1,h=this.circularPBOptions.opacity2,m=document.getElementById("CU3ERprogressbar").getContext("2d");m.beginPath();
m.width=2*b.radius;m.height=2*b.radius;m.lineWidth=b.radius;var n=parseInt(f.substr(0,2),16),k=parseInt(f.substr(2,2),16),f=parseInt(f.substr(4,2),16);m.strokeStyle="rgba("+n+", "+k+", "+f+", "+e+")";m.arc(b.radius,b.radius,b.radius/2,2*Math.PI,0,!0);m.stroke();m.beginPath();m.lineWidth=b.radius-b.padding;e=parseInt(g.substr(0,2),16);n=parseInt(g.substr(2,2),16);g=parseInt(g.substr(4,2),16);k=b.radius-b.padding;m.strokeStyle="rgba("+e+", "+n+", "+g+", "+h+")";m.arc(b.radius,b.radius,(0>k?-k:k)/2,
d,c,!1);m.stroke()},addDigit:function(b){return 1==b.length?"0"+b:b},drawProgressBar:function(b){var d=this.id,c=this.el,f="stage"==b.align_to?this.stage:this.slides;jQuery(".CU3ERindicator",c).remove();jQuery(f).append('<div class="CU3ERindicator"></div>');jQuery(".CU3ERindicator",c).append('<div class="CU3ERprogressAlpha"></div><div class="CU3ERprogress"></div>');var g={loaderTweenShowTint:"#ff0000",loaderTweenOverTint:"#ff0000",loaderTweenShowAlpha:0.75,loaderTweenOverAlpha:1,bgTweenShowAlpha:0.75,
bgTweenOverAlpha:1,bgTweenShowTint:"#ff0000",bgTweenOverTint:"#ff0000",padding:5,width:120,height:20,x:0,y:0,preloaderImage:"http://getcu3er.com/CU3ER-images/CU3ER.png",preloaderWidth:80,preloaderHeight:122,preloaderAlign_pos:"MC",preloaderX:0,preloaderY:0},b=jQuery.extend(g,b),f=!1,e=CU3ER[d].xml,h;try{h=window.ActiveXObject?e.xml:(new XMLSerializer).serializeToString(e)}catch(m){h=e}if("undefined"==typeof h||""==h)h=e;h=String(h).match(/(<licence>(.)*<\/licence>)+/gi);-1<String(h).indexOf("</licence>")&&
(h=String(h).split("</licence>"));null!=h?h.push(CU3ER[d].licenseStr):h=Array(CU3ER[d].licenseStr);if(null!=this.licenceEncoded)for(e=0;e<this.licenceEncoded.length;e++)"undefined"!=typeof CU3ER[d].licenceEncoded[e].text&&(null!=h?h.push(CU3ER[d].licenceEncoded[e].text):h=Array(CU3ER[d].licenceEncoded[e].text));if(null!=h){for(e=0;e<h.length;e++)h[e]=h[e].split("<licence>").join("").split("</licence>").join(""),h[e]=h[e].split("<![CDATA[").join("").split("]]\>").join("");CU3ER[d].licd=[];CU3ER[d].licd.push("");
for(e=0;e<h.length;e++){var n=String(h[e]);if(32<n.length){for(var k="",o="",q=0;q<n.length;)16>q&&(k+=n.charAt(q),q++),o+=n.charAt(q),q++;n="";for(q=0;q<k.length;q++)n+=(k.charCodeAt(q)-65)/3;n>=CU3ER[d].globald&&(h[e]=o,CU3ER[d].licd.push(n+"|"))}}k=e=!1;if(0!=h.length){o=document.location.href.toLowerCase();o=o.split("https://").join("").split("http://").join("").split("www.").join("");o=o.split("/")[0];"file:"==o&&(o="localdrive");for(q=o.split(".");4<q.length;)q.splice(0,1);var n=q,t=o=q.join("."),
r,s,p,v,w;for(w=0;w<CU3ER[d].licd.length;w++){o=CU3ER[d].licd[w]+t;v="";for(var u=" join www. split http:// https:// / charCodeAt length fromCharCode".split(" "),o=o[u[3]](u[5])[u[1]](u[0])[u[3]](u[4])[u[1]](u[0])[u[3]](u[2])[u[1]](u[0]),o=o[u[3]](u[6])[0],e=0;32>e;e++){r=e%2+1;for(p=s=0;p<o[u[8]];)s+=(o[u[7]](p)+3)%(e+1)*(o[u[7]](p)+2),p+=r;s=s%94+33;60==s&&(s=58);62==s&&(s=59);v+=String[u[9]](s)}for(l=0;l<h.length;l++)k=k||v==h[l].toString();v=v.split("+").join(" ");for(l=0;l<h.length;l++)k=k||
v==h[l].toString()}if(3<q.length){v="";q=q.slice(1);t=o=q.join(".");for(w=0;w<CU3ER[d].licd.length;w++){o=CU3ER[d].licd[w]+t;v="";u=" join www. split http:// https:// / charCodeAt length fromCharCode".split(" ");o=o[u[3]](u[5])[u[1]](u[0])[u[3]](u[4])[u[1]](u[0])[u[3]](u[2])[u[1]](u[0]);o=o[u[3]](u[6])[0];for(e=0;32>e;e++){r=e%2+1;for(p=s=0;p<o[u[8]];)s+=(o[u[7]](p)+3)%(e+1)*(o[u[7]](p)+2),p+=r;s=s%94+33;60==s&&(s=58);62==s&&(s=59);v+=String[u[9]](s)}for(l=0;l<h.length;l++)k=k||v==h[l].toString();
v=v.split("+").join(" ");for(l=0;l<h.length;l++)k=k||v==h[l].toString()}}q=n;if(2<q.length){q=q.slice(1);t=o=q.join(".");for(w=0;w<CU3ER[d].licd.length;w++){o=CU3ER[d].licd[w]+t;v="";u=" join www. split http:// https:// / charCodeAt length fromCharCode".split(" ");o=o[u[3]](u[5])[u[1]](u[0])[u[3]](u[4])[u[1]](u[0])[u[3]](u[2])[u[1]](u[0]);o=o[u[3]](u[6])[0];for(e=0;32>e;e++){r=e%2+1;for(p=s=0;p<o[u[8]];)s+=(o[u[7]](p)+3)%(e+1)*(o[u[7]](p)+2),p+=r;s=s%94+33;60==s&&(s=58);62==s&&(s=59);v+=String[u[9]](s)}for(l=
0;l<h.length;l++)k=k||v==h[l].toString();v=v.split("+").join(" ");for(l=0;l<h.length;l++)k=k||v==h[l].toString()}}e=k?!0:!1}else e=!1}else e=!1;if("sliderLoad"==b.type)if(h="undefined"!=typeof CU3ER[d].json.settings.branding?"undefined"!=typeof CU3ER[d].json.settings.branding.remove_logo_loader?CU3ER[d].json.settings.branding.remove_logo_loader:"false":"false",e&&"true"==h)if("undefined"==typeof b.image||null==b.image){if(jQuery(".CU3ERprogress",c).css({"background-color":b.loaderTweenShowTint.replace("0x",
"#")}).hover(function(){jQuery(this).css({"background-color":b.loaderTweenOverTint.replace("0x","#"),opacity:b.loaderTweenOverAlpha,cursor:"pointer"})},function(){jQuery(this).css({"background-color":b.loaderTweenShowTint.replace("0x","#"),opacity:b.loaderTweenShowAlpha})}),"circular"==b.shape){if(this.supportCanvas())return this.circularPBOptions={color1:b.bgTweenShowTint.replace("0x",""),color2:b.loaderTweenShowTint.replace("0x",""),opacity1:b.bgTweenShowAlpha,opacity2:b.loaderTweenShowAlpha,padding:b.padding,
radius:b.radius,startPoint:0,endPoint:0,tempTimeout:null,shape:"circular",startSlider:!0},this.drawCircularProgressBar(b),!1;b.width=2*parseInt(CU3ER[d].json.preloader.radius);b.height=10>parseInt(CU3ER[d].json.preloader.radius)/4?10:parseInt(CU3ER[d].json.preloader.radius)/4}}else jQuery(".CU3ERprogress, .CU3ERprogressAlpha",c).css("background",'transparent url("'+b.image+'") no-repeat top left');else b.image=g.preloaderImage,b.width=g.preloaderWidth,b.height=g.preloaderHeight,b.align_pos=g.preloaderAlign_pos,
b.posX=g.preloaderX,b.posY=g.preloaderY,b.loaderTreenOverTint="transparent",b.loaderTweenShowTint="transparent",b.bgTweenShowTint="transparent",b.bgTweenOverTint="transparent",b.loaderTweenShowAlpha=0.5,b.loaderTweenOverAlpha=0.5,b.bgTweenShowAlpha=0.5,b.bgTweenOverAlpha=0.5,jQuery(".CU3ERprogress, .CU3ERprogressAlpha",c).css({background:'transparent url("'+b.image+'") no-repeat top left'}),f=!0;else if(jQuery(".CU3ERprogress",c).css("backgroundColor",b.loaderTweenShowTint.replace("0x","#")).hover(function(){jQuery(this).css({backgroundColor:b.loaderTweenOverTint.replace("0x",
"#"),opacity:b.loaderTweenOverAlpha,cursor:"pointer"})},function(){jQuery(this).css({backgroundColor:b.loaderTweenShowTint.replace("0x","#"),opacity:b.loaderTweenShowAlpha})}),"circular"==b.shape){if(this.supportCanvas())return this.circularPBOptions={color1:b.bgTweenShowTint.replace("0x",""),color2:b.loaderTweenShowTint.replace("0x",""),opacity1:0<b.bgTweenShowAlpha?b.bgTweenShowAlpha:"0.75",opacity2:0<b.loaderTweenShowAlpha?b.loaderTweenShowAlpha:"0.75",padding:b.padding,radius:b.radius,startPoint:0,
endPoint:0,tempTimeout:null,shape:"circular"},this.drawCircularProgressBar(b),!1;b.width=2*parseInt(CU3ER[d].json.controls.auto_play_indicator.radius);b.height=10>parseInt(CU3ER[d].json.controls.auto_play_indicator.radius)/4?10:parseInt(CU3ER[d].json.controls.auto_play_indicator.radius)/4}"stage"==b.align_to||!0==f?(g=this.json.settings.width,h=this.json.settings.height):(g=this.json.slides.width,h=this.json.slides.height);optionsProgress={align_pos:b.align_pos,x:b.posX,y:b.posY,width:b.width,height:b.height,
fullWidth:g,fullHeight:h};cssProgress=this.calculatePosition(optionsProgress);jQuery(".CU3ERindicator",c).css({width:parseInt(b.width)-parseInt(b.padding)+"px",height:parseInt(b.height)+"px",position:"absolute",background:"transparent","z-index":450,opacity:1,cursor:"pointer","line-height":"1px"}).css(cssProgress);jQuery(".CU3ERprogressAlpha",c).css({width:parseInt(b.width)-parseInt(b.padding)+"px",height:parseInt(b.height)+"px"});"sliderLoad"==b.type&&jQuery(".CU3ERindicator",c).css({opacity:1,cursor:"default",
background:"transparent"}).unbind();g=0==b.height%2?2:1;h=1>parseInt(b.height)-2*parseInt(b.padding)?g:+(parseInt(b.height)-2*parseInt(b.padding));g={top:parseInt(b.padding),left:parseInt(b.padding),maxWidth:parseInt(b.width)-parseInt(b.padding)-2*parseInt(b.padding)+"px",height:h+"px","line-height":"1px"};jQuery.browser.msie&&(h=jQuery("<div>").css({top:0,left:0,width:parseInt(b.width)-parseInt(b.padding)-2*parseInt(b.padding)+"px",height:h+"px",position:"absolute","line-height":"1px"}),jQuery(".CU3ERprogress",
c).wrap(h));jQuery(".CU3ERprogress",c).css({width:0,height:parseInt(b.height),position:"absolute","z-index":451,opacity:b.loaderTweenShowAlpha,padding:0,margin:0,left:0,top:0,"line-height":"1px"});jQuery(".CU3ERprogress",c).css("z-index",452);("undefined"==typeof b.image||null==b.image)&&jQuery(".CU3ERprogress",c).css(g);jQuery(".CU3ERprogressAlpha",c).css({opacity:b.bgTweenShowAlpha,width:parseInt(b.width)-parseInt(b.padding)+"px",height:parseInt(b.height)+"px",background:"undefined"==typeof b.image||
null==b.image?b.bgTweenShowTint.replace("0x","#"):'transparent url("'+b.image+'") no-repeat top left',padding:0,margin:0,left:0,top:0,"line-height":"1px"});jQuery(".CU3ERprogress",c).css({opacity:b.loaderTweenShowAlpha});f&&(jQuery(".CU3ERprogress",c).css({opacity:1}),jQuery(".CU3ERindicator",c).css({opacity:1,cursor:"pointer","z-index":1001}).bind("click",function(){window.open("http://getcu3er.com/"+(typeof CU3ER[d].json.referral!="undefined"?"?cu3er="+CU3ER[d].json.referral:""),"CU3ER")}),f=!1)},
drawButtons:function(b,d,c,f,g){var e=this.id,h=this.el,m=jQuery.extend(!0,{},{align_to:"slides",align_pos:"TL",x:"0",y:"0",width:40,height:40,background:{tweenShow:{tint:"#ffffff",alpha:0.85,x:0,y:0,scaleX:1,scaleY:1},tweenOver:{tint:"#ffffff",alpha:1,x:0,y:0,scaleX:1,scaleY:1},tweenHide:{tint:"#ffffff",alpha:0,x:0,y:0,scaleX:1,scaleY:1}}}),b=jQuery.extend(!0,m,b);jQuery("stage"==b.align_to?this.stage:this.slides).append('<div class="CU3ERbutton'+b.type1+'"><div class="CU3ERshowBtn"><div class="CU3ERButton'+
b.type1+'BG"></div></div><div class="CU3ERoverBtn"><div class="CU3ERButton'+b.type1+'BG"></div></div></div>');"undefined"!=typeof b.symbol&&(jQuery(".CU3ERbutton"+b.type1+" .CU3ERshowBtn",h).append('<img src="'+CU3ER[e].imgFallbackFolder+"/fallback/"+b.type+'_symbol_show.png" />').find("img").css({"z-index":451,position:"absolute",top:0,left:0}).load(function(){null==CU3ER[e].transition&&(CU3ER[e].updateIndicator(++CU3ER[e].a,CU3ER[e].totalInd,CU3ER[e].stage+" .CU3ERindicator",!0),CU3ER[e].debug(b.type1+
" button loaded"))}).error(function(){null==CU3ER[e].transition&&(CU3ER[e].updateIndicator(++CU3ER[e].a,CU3ER[e].totalInd,CU3ER[e].stage+" .CU3ERindicator",!0),CU3ER[e].debug(b.type1+" button not exist"))}),jQuery(".CU3ERbutton"+b.type1+" .CU3ERoverBtn",h).append('<img src="'+CU3ER[e].imgFallbackFolder+"/fallback/"+b.type+'_symbol_over.png" />').find("img").css({"z-index":451,position:"absolute",top:0,left:0}));optionsButton={align_pos:b.align_pos,x:Math.round(parseFloat(b.x)),y:Math.round(parseFloat(b.y)),
width:Math.round(parseFloat(b.width)),height:Math.round(parseFloat(b.height)),fullWidth:"slides"==b.align_to?parseInt(d):parseInt(f),fullHeight:"slides"==b.align_to?parseInt(c):parseInt(g)};var n=this.calculatePosition(optionsButton);optionsButtonHover={align_pos:b.align_pos,x:parseInt(b.x)+parseInt(b.background.tweenOver.x),y:parseInt(b.y)+parseInt(b.background.tweenOver.y),width:Math.round(parseFloat(b.width)*parseFloat(b.background.tweenOver.scaleX)),height:Math.round(parseFloat(b.height)*parseFloat(b.background.tweenOver.scaleY)),
fullWidth:"slides"==b.align_to?parseInt(d):parseInt(f),fullHeight:"slides"==b.align_to?parseInt(c):parseInt(g)};var k=this.calculatePosition(optionsButtonHover);jQuery(".CU3ERbutton"+b.type1+" .CU3ERoverBtn",h).css("display","none").find(".CU3ERButton"+b.type1+"BG").css({opacity:b.background.tweenOver.alpha,backgroundColor:b.background.tweenOver.tint.replace("0x","#"),width:Math.round(parseInt(b.width)*parseFloat(b.background.tweenOver.scaleX))+"px",height:Math.round(parseInt(b.height)*parseFloat(b.background.tweenOver.scaleY))+
"px",position:"absolute",top:0,left:0}).borderRadius(b.background.round_corners);jQuery(".CU3ERbutton"+b.type1,h).css({width:Math.round(parseFloat(b.width))+"px",height:Math.round(parseFloat(b.height))+"px",position:"absolute",cursor:"pointer",zIndex:451,"-webkit-transform":"translateZ(1px)","-moz-transform":"translateZ(1px)",display:"none"}).css(n).hover(function(){var c=jQuery(this);jQuery(c).css(k).css({width:Math.round(parseInt(b.width)*parseFloat(b.background.tweenOver.scaleX))+"px",height:Math.round(parseInt(b.height)*
parseFloat(b.background.tweenOver.scaleY))+"px"});jQuery(".CU3ERshowBtn",jQuery(this)).css("display","none");jQuery(".CU3ERoverBtn",jQuery(this)).css("display","block")},function(){var c=jQuery(this);jQuery(c).css(n).css({width:parseInt(b.width)+"px",height:parseInt(b.height)+"px"});jQuery(".CU3ERoverBtn",jQuery(this)).css("display","none");jQuery(".CU3ERshowBtn",jQuery(this)).css("display","block")}).borderRadius(b.background.round_corners).bind("click touchstart",function(){if(b.type=="prev"){if(!CU3ER[e].inTransition){CU3ER[e].inTransition=
true;CU3ER[e].doCheck=false;setTimeout(function(){CU3ER[e].prev()},50)}}else if(!CU3ER[e].inTransition){CU3ER[e].inTransition=true;CU3ER[e].doCheck=false;setTimeout(function(){CU3ER[e].next()},50)}return false}).find(".CU3ERshowBtn .CU3ERButton"+b.type1+"BG").css({width:Math.round(parseFloat(b.width))+"px",height:Math.round(parseFloat(b.height))+"px",backgroundColor:b.background.tweenShow.tint.replace("0x","#"),position:"absolute",opacity:b.background.tweenShow.alpha,top:0,left:0}).borderRadius(b.background.round_corners)},
drawDescription:function(b){var d=this.el,c={align_to:"slides",align_pos:"TL",x:0,y:0,width:400,height:100,background:{tweenShow:{tint:"#ff0000",alpha:"0.85",scaleX:1,scaleY:1,x:0,y:0},tweenOver:{tint:"#ff0000",alpha:"1",scaleX:1,scaleY:1,x:0,y:0},tweenHide:{tint:"#ff0000",alpha:"0",scaleX:1,scaleY:1,x:0,y:0}}},b=jQuery.extend(!0,c,b);b.x=parseInt(b.x)+parseInt(b.background.tweenShow.x);b.y=parseInt(b.y)+parseInt(b.background.tweenShow.y);var f="stage"==b.align_to?this.stage:this.slides;if("stage"==
b.align_to)var g=this.json.settings.width,e=this.json.settings.height;else g=this.json.slides.width,e=this.json.slides.height;b.fullWidth=g;b.fullHeight=e;b.height=Math.round(parseInt(b.height)*parseFloat(b.background.tweenShow.scaleY));b.width=Math.round(parseInt(b.width)*parseFloat(b.background.tweenShow.scaleX));c=jQuery.extend({},c,b);c.x=parseInt(b.x)+parseInt(b.background.tweenOver.x);c.y=parseInt(b.y)+parseInt(b.background.tweenOver.y);c.fullWidth=g;c.fullHeight=e;c.height=Math.round(parseInt(b.height)*
parseFloat(b.background.tweenOver.scaleY));c.width=Math.round(parseInt(b.width)*parseFloat(b.background.tweenOver.scaleX));jQuery(f).append('<div class="CU3ERdescription"></div>');var h=this.calculatePosition(b),m=this.calculatePosition(c);jQuery(".CU3ERdescription",d).css({position:"absolute",width:Math.round(parseInt(b.width)*parseFloat(b.background.tweenShow.scaleX))+"px",height:Math.round(parseInt(b.height)*parseFloat(b.background.tweenShow.scaleY))+"px",opacity:1,background:"transparent",zIndex:450,
"-webkit-transform":"translateZ(1px)","-moz-transform":"translateZ(1px)",display:"none"}).css(h).append('<div class="CU3ERDescBG"></div><div class="CU3ERDescriptionText"></div>').hover(function(){jQuery(".CU3ERdescription",d).css({width:Math.round(parseInt(b.width)*parseFloat(b.background.tweenOver.scaleX))+"px",height:Math.round(parseInt(b.height)*parseFloat(b.background.tweenOver.scaleY))+"px"}).css(m);jQuery(this).find(".CU3ERDescBG").css({opacity:b.background.tweenOver.alpha,background:b.background.tweenOver.tint.replace("0x",
"#"),width:Math.round(parseInt(b.width)*parseFloat(b.background.tweenOver.scaleX))+"px",height:Math.round(parseInt(b.height)*parseFloat(b.background.tweenOver.scaleY))+"px"});"undefined"!=typeof b.heading&&jQuery(this).find("h2").css({opacity:b.heading.tweenOver.alpha,color:b.heading.tweenOver.tint.replace("0x","#")}).find("a").css({opacity:b.heading.tweenOver.alpha,color:b.heading.tweenOver.tint.replace("0x","#")});"undefined"!=typeof b.paragraph&&jQuery(this).find("p").css({opacity:b.paragraph.tweenOver.alpha,
color:b.paragraph.tweenOver.tint.replace("0x","#")}).find("a").css({opacity:b.paragraph.tweenOver.alpha,color:b.paragraph.tweenOver.tint.replace("0x","#")})},function(){jQuery(".CU3ERdescription",d).css({width:Math.round(parseInt(b.width)*parseFloat(b.background.tweenShow.scaleX))+"px",height:Math.round(parseInt(b.height)*parseFloat(b.background.tweenShow.scaleY))+"px"}).css(h);jQuery(this).find(".CU3ERDescBG").css({opacity:b.background.tweenShow.alpha,background:b.background.tweenShow.tint.replace("0x",
"#"),width:Math.round(parseInt(b.width)*parseFloat(b.background.tweenShow.scaleX))+"px",height:Math.round(parseInt(b.height)*parseFloat(b.background.tweenShow.scaleY))+"px"});"undefined"!=typeof b.heading&&jQuery(this).find("h2").css({opacity:b.heading.tweenShow.alpha,color:b.heading.tweenShow.tint.replace("0x","#")}).find("a").css({opacity:b.heading.tweenShow.alpha,color:b.heading.tweenShow.tint.replace("0x","#")});"undefined"!=typeof b.paragraph&&jQuery(this).find("p").css({opacity:b.paragraph.tweenShow.alpha,
color:b.paragraph.tweenShow.tint.replace("0x","#")}).find("a").css({opacity:b.paragraph.tweenShow.alpha,color:b.paragraph.tweenShow.tint.replace("0x","#")})}).find(".CU3ERDescBG").css({position:"relative",top:0,left:0,width:parseInt(b.width)+"px",height:parseInt(b.height)+"px",opacity:b.background.tweenShow.alpha,background:b.background.tweenShow.tint.replace("0x","#"),"z-index":451}).borderRadius(b.background.round_corners).parent().find(".CU3ERDescriptionText").css({position:"absolute",top:0,left:0,
display:"block",width:parseInt(b.width)+"px","z-index":452})},drawThumbnails:function(b){var d=this.id,c=this.el;CU3ER[d].debug("creating css for thumbnails");var f=0,g=0,e=0,b=jQuery.extend(!0,{},{x:0,y:0,align_pos:"TL",thumb:{background:{tweenShow:{x:0,y:0,tint:"0x000000",alpha:0.75},tweenOver:{x:0,y:0,tint:"0x000000",alpha:1},tweenHide:{x:0,y:0,tint:"0x000000",alpha:0},tweenSelected:{x:0,y:0,tint:"0x000000",alpha:0.5}},title:{tweenShow:{x:0,y:0,tint:"0xFFFFFF",alpha:0.75},tweenOver:{x:0,y:0,tint:"0xFFFFFF",
alpha:1},tweenHide:{x:0,y:0,tint:"0xFFFFFF",alpha:0},tweenSelected:{x:0,y:0,tint:"0xFFFFF0",alpha:0.5}},image:{tweenShow:{x:0,y:0,alpha:0.75},tweenOver:{x:0,y:0,alpha:1},tweenHide:{x:0,y:0,alpha:0},tweenSelected:{x:0,y:0,alpha:0.5},x:0,y:0,width:30,height:30,round_corners:"0,0,0,0"},x:0,y:0}},b);if("stage"==b.align_to)var h=this.json.settings.width,m=this.json.settings.height;else h=this.json.slides.width,m=this.json.slides.height;h={x:Math.round(parseFloat(b.x)),y:Math.round(parseFloat(b.y)),align_pos:b.align_pos,
width:parseInt(b.width),height:parseInt(b.height),fullWidth:h,fullHeight:m};cssThumbs=this.calculatePosition(h);if("horizontal"==b.scroll){var m=parseInt(b.width),h=parseInt(this.slidesTotal*parseInt(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x))),n=Math.floor(parseInt(b.width)/(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x)));n*(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x))+parseInt(b.thumb.width)<b.width&&n++;var k=Math.floor(parseInt(b.height)/(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y)));
k*(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y))+parseInt(b.thumb.height)<b.height&&k++;var k=0==k?1:k,n=0==n?1:n,o=h-parseInt(n)*parseInt(k)*parseInt(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x)),o=0<o?parseInt(b.width)+parseInt(b.padding_x)+parseInt(o):b.width,m=h/parseInt(n*parseInt(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x))),m=Math.ceil(m)>parseInt(k)?parseInt(k):Math.ceil(m),m=parseInt(m)*parseInt(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y)),q=parseInt(b.width)-
parseInt(b.padding_x)+"px",t=parseInt(b.height)+parseInt(b.padding_y)+"px",r=Math.ceil(this.slidesTotal/n),s=Math.ceil(this.slidesTotal/k),r=r<=k?r:k;cssThumbHolderScroll=this.calculatePosition({x:0,y:0,align_pos:"TL",width:parseInt(b.width),height:Math.floor(r)*parseInt(b.thumb.height)+Math.floor(k)*parseInt(b.thumb.spacing_y)+parseInt(b.thumb.y)+parseInt(b.padding_y),fullWidth:q,fullHeight:t});cssThumbHolder=this.calculatePosition({x:parseInt(b.padding_x),y:parseInt(b.padding_y),align_pos:"ML",
width:parseInt(b.width),height:Math.floor(r)*parseInt(b.thumb.height)+Math.floor(k)*parseInt(b.thumb.spacing_y)+parseInt(b.thumb.y)+parseInt(b.padding_y)-parseInt(b.thumb.spacing_y),fullWidth:q,fullHeight:t});var p=!1,v=jQuery(".CU3ERThumb",c),w=this.slidesTotal<=n?this.slidesTotal:Math.ceil(this.slidesTotal/Math.floor(k));v.each(function(){f==w&&g+1<w&&(f=0,g++,p=!0);var c=f*parseInt(b.thumb.width)+f*parseInt(b.thumb.spacing_x)+parseInt(b.thumb.x),m=g*parseInt(b.thumb.height)+g*parseInt(b.thumb.spacing_y)+
parseInt(b.thumb.y),c=CU3ER[d].calculatePosition({x:c,y:m,width:parseInt(b.thumb.width),height:Math.floor(k)*parseInt(b.thumb.height),fullWidth:parseInt(q),fullHeight:parseInt(t),align_pos:"TL"});jQuery(this).css(c).css({position:"absolute"});f++;e=e<f?f:e});m=e<=n?!1:!0}else m=parseInt(b.height)-parseInt(b.padding_y),h=parseInt(this.slidesTotal*parseInt(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y))+parseInt(b.thumb.y)+parseInt(b.padding_y)),k=Math.floor(parseInt(b.height)/(parseInt(b.thumb.height)+
parseInt(b.thumb.spacing_y))),k*(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y))+parseInt(b.thumb.height)<b.height&&k++,n=Math.floor(parseInt(b.width)/(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x))),n*(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x))+parseInt(b.thumb.width)<b.width&&n++,k=0==k?1:k,n=0==n?1:n,m=h-parseInt(k)*parseInt(n)*parseInt(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y)),m=0<m?parseInt(b.height)+parseInt(m):b.height,m=k*(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y))-
parseInt(b.thumb.spacing_y),s=h/parseInt(k*parseInt(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y))),o=Math.ceil(s)>parseInt(n)?parseInt(n):Math.ceil(s),o=parseInt(o)*parseInt(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x)),totalH1=s/n,q=parseInt(b.width)+parseInt(b.padding_x)+"px",t=parseInt(b.height)-parseInt(b.padding_y)+"px",s=Math.ceil(this.slidesTotal/k),r=Math.ceil(this.slidesTotal/n),s=s<=n?s:n,cssThumbHolderScroll=this.calculatePosition({x:0,y:0,align_pos:"TL",width:Math.floor(s)*
parseInt(b.thumb.width)+Math.floor(n)*parseInt(b.thumb.spacing_x)+parseInt(b.thumb.x)+parseInt(b.padding_x),height:parseInt(b.height),fullWidth:parseInt(q),fullHeight:parseInt(t)}),r=Math.floor(s)*parseInt(b.thumb.width)+Math.floor(n)*parseInt(b.thumb.spacing_x)+parseInt(b.thumb.x)+parseInt(b.padding_x)-parseInt(b.thumb.spacing_x),o=s<=n?r>o?r:o:q,cssThumbHolder=this.calculatePosition({x:parseInt(b.padding_x),y:parseInt(b.padding_y),align_pos:"TC",width:r,height:parseInt(b.height),fullWidth:o,fullHeight:s<=
k?m:t}),v=jQuery(".CU3ERThumb",c),p=!1,f=g=0,v.each(function(){var c=f*parseInt(b.thumb.width)+f*parseInt(b.thumb.spacing_x)+parseInt(b.thumb.x),m=g*parseInt(b.thumb.height)+g*parseInt(b.thumb.spacing_y)+parseInt(b.thumb.y),c=CU3ER[d].calculatePosition({x:c,y:m,width:Math.floor(n)*parseInt(b.thumb.width),height:parseInt(b.thumb.height),fullWidth:parseInt(q),fullHeight:parseInt(t),align_pos:"TL"});jQuery(this).css(c).css({position:"absolute"});f++;f>=n&&(1<f&&(p=!0),f=0,g++,e=e<g?g:e)}),m=e<=k?!1:
!0;this.scrollOptions.maximumWidth=n;this.scrollOptions.maximumHeight=k;"undefined"!=typeof b.background&&jQuery(".CU3ERthumbsBG",c).css({background:b.background.color.replace("0x","#"),opacity:b.background.alpha,width:parseInt(b.width)+"px",height:parseInt(b.height)+"px",position:"absolute",top:0,left:0,outline:"none"}).borderRadius(b.background.round_corners);this.isTouch()?jQuery(".CU3ERthumbs",c).wrap(jQuery("<div />").attr("class","CU3ERtouchPadFix").css({overflow:"hidden",position:"absolute",
width:parseInt(b.width)+"px",height:parseInt(b.height)+"px"}).css(cssThumbs)):jQuery(".CU3ERthumbs",c).css(cssThumbs);jQuery(".CU3ERthumbs",c).css({width:parseInt(b.width),height:parseInt(b.height),position:"absolute",visibility:"hidden",zIndex:415,outline:"none","-webkit-transform":"translateZ(0px)","-moz-transform":"translateZ(0px)"}).find(".CU3ERThumbsScroll").css({width:parseInt(b.width),height:parseInt(b.height),outline:"none",overflow:"hidden",position:"absolute"}).css(cssThumbHolderScroll).find(".CU3ERthumbs-holder").css({width:"6000px",
height:"1000px",position:"relative",outline:"none"}).css(cssThumbHolder).find(".CU3ERThumbBG").css({position:"absolute",top:0,left:0,background:b.thumb.background.tweenShow.tint.replace("0x","#"),opacity:b.thumb.background.tweenShow.alpha,width:b.thumb.width+"px",height:b.thumb.height+"px",outline:"none"}).borderRadius(b.thumb.background.round_corners).parent().css({cursor:"pointer",width:b.thumb.width+"px",height:b.thumb.height+"px",border:"none",padding:0,background:"none"}).hover(function(){var d=
jQuery(this);jQuery(".CU3ERThumbBG",c).each(function(){jQuery(this).css({background:jQuery(this).parent().hasClass("current")?b.thumb.background.tweenSelected.tint.replace("0x","#"):b.thumb.background.tweenShow.tint.replace("0x","#"),opacity:jQuery(this).parent().hasClass("current")?b.thumb.background.tweenSelected.alpha:b.thumb.background.tweenShow.alpha})});jQuery(this).find(".CU3ERThumbBG").css({background:jQuery(d).hasClass("current")?b.thumb.background.tweenSelected.tint.replace("0x","#"):b.thumb.background.tweenOver.tint.replace("0x",
"#"),opacity:jQuery(d).hasClass("current")?b.thumb.background.tweenSelected.alpha:b.thumb.background.tweenOver.alpha});jQuery(this).find("a").css({"background-image":"none","background-color":"transparent"});"undefined"!=typeof b.thumb.title&&jQuery(this).find(".CU3ERtitle").css({color:jQuery(d).hasClass("current")?b.thumb.title.tweenSelected.tint.replace("0x","#"):b.thumb.title.tweenOver.tint.replace("0x","#"),opacity:jQuery(d).hasClass("current")?b.thumb.background.tweenSelected.alpha:b.thumb.background.tweenOver.alpha});
"undefined"!=typeof b.thumb.image&&(jQuery(".CU3ERThumb img",c).each(function(){jQuery(this).parent().css({opacity:jQuery(this).hasClass("current")?b.thumb.image.tweenSelected.alpha:b.thumb.image.tweenShow.alpha})}),jQuery(this).find("img").parent().css({opacity:jQuery(this).parent().hasClass("current")?b.thumb.image.tweenSelected.alpha:b.thumb.image.tweenOver.alpha}))},function(){var d=jQuery(this);jQuery(".CU3ERThumbBG",c).each(function(){jQuery(this).css({background:jQuery(this).parent().hasClass("current")?
b.thumb.background.tweenSelected.tint.replace("0x","#"):b.thumb.background.tweenShow.tint.replace("0x","#"),opacity:jQuery(this).parent().hasClass("current")?b.thumb.background.tweenSelected.alpha:b.thumb.background.tweenShow.alpha})});"undefined"!=typeof b.thumb.title&&jQuery(this).find(".CU3ERtitle").css({color:jQuery(d).hasClass("current")?b.thumb.title.tweenSelected.tint.replace("0x","#"):b.thumb.title.tweenShow.tint.replace("0x","#"),opacity:jQuery(d).hasClass("current")?b.thumb.title.tweenSelected.alpha:
b.thumb.title.tweenShow.alpha});"undefined"!=typeof b.thumb.image&&jQuery(".CU3ERThumb img",c).each(function(){jQuery(this).parent().css({opacity:jQuery(this).parent().parent().parent().hasClass("current")?b.thumb.image.tweenSelected.alpha:b.thumb.image.tweenShow.alpha})})}).bind("classChanged",function(){"undefined"!=typeof b.thumb.background&&(jQuery(".CU3ERThumbBG",c).css({background:b.thumb.background.tweenShow.tint.replace("0x","#"),opacity:b.thumb.background.tweenShow.alpha}),jQuery(this).find(".CU3ERThumbBG").css({background:b.thumb.background.tweenSelected.tint.replace("0x",
"#"),opacity:b.thumb.background.tweenSelected.alpha}));"undefined"!=typeof b.thumb.title&&(jQuery(".CU3ERtitle",c).css({color:b.thumb.title.tweenShow.tint.replace("0x","#"),opacity:b.thumb.title.tweenShow.alpha}),jQuery(this).find(".CU3ERtitle").css({color:b.thumb.title.tweenSelected.tint.replace("0x","#"),opacity:b.thumb.title.tweenSelected.alpha}));"undefined"!=typeof b.thumb.image&&(jQuery(".CU3ERThumb img",c).each(function(){jQuery(this).parent().css({opacity:b.thumb.image.tweenShow.alpha})}),
jQuery(this).find("img").parent().css({opacity:b.thumb.image.tweenSelected.alpha}))}).borderRadius(b.thumb.background.round_corners).find(".CU3ERThumbBG").css({position:"absolute",top:0,left:0,background:b.thumb.background.tweenShow.tint.replace("0x","#"),opacity:b.thumb.background.tweenShow.alpha,width:b.thumb.width+"px",height:b.thumb.height+"px",outline:"none"}).borderRadius(b.thumb.background.round_corners).parent().find("a").css({outline:"none",width:b.thumb.width+"px",height:b.thumb.height+
"px"}).find("div:first").css({width:b.thumb.width+"px",height:b.thumb.height+"px",position:"relative",cursor:"pointer",overflow:"hidden",outline:"none"});"undefined"!=typeof b.thumb.image&&jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb a img",c).css({width:b.thumb.image.width+"px",height:b.thumb.image.height+"px",outline:"none",opacity:0}).borderRadius(b.thumb.image.round_corners).parent().css({overflow:"hidden",width:b.thumb.image.width+"px",height:b.thumb.image.height+"px",left:b.thumb.image.x+
"px",top:b.thumb.image.y+"px",position:"relative"}).borderRadius(b.thumb.image.round_corners);if("undefined"!=typeof b.scroller){if("horizontal"==b.scroll?(m=parseInt(b.width),k=0==k?1:k,b.scroller.maximum=h=Math.ceil(this.slidesTotal/Math.floor(k))*(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x))+parseInt(b.padding_x)+parseInt(b.thumb.x),b.scroller.slider.width=Math.round(100*(m/h)),b.scroller.scroll="horizontal"):(m=parseInt(b.height),n=0==n?1:n,b.scroller.maximum=h=Math.ceil(this.slidesTotal/
Math.floor(n))*(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y))+parseInt(b.padding_y)+parseInt(b.thumb.y),b.scroller.slider.width=Math.round(100*(m/h)),b.scroller.scroll="vertical"),100>b.scroller.slider.width)b.scroller.thumb=b.thumb,b.scroller.scroller=!0,this.drawScrollBar(b.scroller)}else o="horizontal"==b.scroll?parseInt(b.thumb.spacing_x):parseInt(b.thumb.spacing_y),n=this.slidesTotal<=n?this.slidesTotal:n,s="horizontal"==b.scroll?k:n,r="horizontal"==b.scroll?parseInt(b.thumb.width):parseInt(b.thumb.height),
b.maximum=Math.ceil(this.slidesTotal/Math.floor(n))*(parseInt(b.thumb.height)+parseInt(o))-Math.floor(s)*parseInt(o)+parseInt(b.padding_x),100>Math.round(100*(b.maximum/h))&&(p?b.maximim=Math.ceil(this.slidesTotal/Math.floor(s))*r+o:b.maximum=h-r+o,"undefined"!=typeof m&&!0==m&&this.attachScrollBehavior(b));this.isTouch()||(v=jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb",c),v.each(function(b){jQuery(v[b]).bind("click",function(){CU3ER[d].current!=b&&!CU3ER[d].inTransition&&(CU3ER[d].inTransition=
!0,CU3ER[d].doCheck=!1,setTimeout(function(){CU3ER[d].skipTo(b,!0,!0)},50));return!1})}))},drawScrollBar:function(b){var d=this.id,c=this.el;CU3ER[d].debug("drawing scrollbar and attaching scroll behavior");var b=jQuery.extend(!0,{align_pos:"TL",x:0,y:0,width:10,height:10,round_corners:"5,5,5,5",bar:{color:"0x777777",alpha:0.9},slider:{thickness:6,color:"0xbbbbbb",alpha:1},thumb:{spacing_x:0,spacing_y:0}},b),f=!1,g=0,e=0,h=0,m=0,n=jQuery(".CU3ERthumbsBG",c).outerWidth(),k=jQuery(".CU3ERthumbsBG",
c).outerHeight(),n={width:parseInt(b.width),height:parseInt(b.height),x:parseInt(b.x),y:parseInt(b.y),align_pos:b.align_pos,fullWidth:n,fullHeight:k},n=this.calculatePosition(n);jQuery(".CU3ERthumbs",c).append('<div class="CU3ERscroll-holder"><div class="CU3ERscroll"></div></div>');jQuery(".CU3ERthumbs",c).bind("mouseover",function(e){var f=jQuery(e.currentTarget).offset();if("horizontal"==b.scroll){var g=Math.round(f.left+jQuery(e.currentTarget).width()/3),m=Math.round(f.left+2*(jQuery(e.currentTarget).width()/
3)),f=jQuery(".CU3ERscroll-holder",c)?jQuery(".CU3ERscroll-holder",c).width():jQuery(".CU3ERThumbsScroll",c).width(),h=jQuery(".CU3ERscroll",c).width(),k=Math.round((parseInt(b.height)-parseInt(b.slider.thickness))/2),n=100*(f-h-k)/parseInt(f),n=n*b.maximum/100,h=100*(f-h)/parseInt(f),h=h*b.maximum/100,e=parseInt(e.clientX);if(e<g){var w=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("marginLeft"));scrollPXMovement=50*Math.round((g-e)*(g-e)/(g+w));scrollPX=0<w-scrollPXMovement?w-scrollPXMovement:0;
scrollPercentage=parseInt(100*(scrollPX/b.maximum));e=Math.ceil(scrollPercentage*parseInt(f)/100);CU3ER[d].scrollTo(e>k?e:k,scrollPX,"LR",!0)}else e>m&&(w=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("marginLeft")),scrollPXMovement=50*Math.round((m-e)*(m-e)/(m+w)),scrollPX=w+scrollPXMovement<n?w+scrollPXMovement:n,scrollPX2=w+scrollPXMovement<h?w+scrollPXMovement:h,scrollPercentage=parseInt(100*(scrollPX/b.maximum)),e=Math.ceil(scrollPercentage*parseInt(f)/100),CU3ER[d].scrollTo(e,scrollPX2,"LR",
!0))}else g=Math.round(f.top+jQuery(e.currentTarget).height()/3),m=Math.round(f.top+2*(jQuery(e.currentTarget).height()/3)),f=jQuery(".CU3ERscroll-holder",c)?jQuery(".CU3ERscroll-holder",c).height():jQuery(".CU3ERThumbsScroll",c).height(),h=jQuery(".CU3ERscroll",c).height(),k=Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),n=100*(f-h-k)/parseInt(f),n=n*b.maximum/100,h=100*(f-h)/parseInt(f),h=h*b.maximum/100,e=parseInt(e.clientY),e<g?(w=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("marginTop")),
scrollPXMovement=50*Math.round((g-e)*(g-e)/(g+w)),scrollPX=0<w-scrollPXMovement?w-scrollPXMovement:0,scrollPercentage=100*(scrollPX/b.maximum),e=Math.ceil(scrollPercentage*parseInt(f)/100),CU3ER[d].scrollTo(e>k?e:k,scrollPX,"TB",!0)):e>m&&(w=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("marginTop")),scrollPXMovement=50*Math.round((m-e)*(m-e)/(m+w)),scrollPX=w+scrollPXMovement<n?w+scrollPXMovement:n,scrollPX2=w+scrollPXMovement<h?w+scrollPXMovement:h,scrollPercentage=100*(scrollPX/b.maximum),e=Math.ceil(scrollPercentage*
parseInt(f)/100),CU3ER[d].scrollTo(e,scrollPX2,"TB",!0))});jQuery(".CU3ERscroll-holder",c).css(n).css({width:b.width+"px",height:b.height+"px",position:"absolute",background:b.bar.color.replace("0x","#"),opacity:b.bar.alpha,"z-index":1E7,outline:"none",lineHeight:"1px"}).borderRadius(b.round_corners).find(".CU3ERscroll").css({background:b.slider.color.replace("0x","#"),opacity:b.slider.alpha,height:"horizontal"==b.scroll?b.slider.thickness+"px":Math.floor(b.slider.width)+"%",width:"horizontal"==b.scroll?
Math.floor(b.slider.width)+"%":b.slider.thickness+"px",position:"absolute",top:"horizontal"==b.scroll?Math.round((parseInt(b.height)-parseInt(b.slider.thickness))/2):Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),left:"horizontal"==b.scroll?Math.round((parseInt(b.height)-parseInt(b.slider.thickness))/2):Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),cursor:"pointer","z-index":10000001,outline:"none",lineHeight:"1px"}).borderRadius(b.round_corners).bind("mousedown",
function(b){f=!0;b.preventDefault();g=b.clientX;e=b.clientY;h=parseFloat(jQuery(".CU3ERscroll",c).css("left"));m=parseFloat(jQuery(".CU3ERscroll",c).css("top"))});jQuery(document).bind("mousemove",function(k){if(f)if("horizontal"==b.scroll){var n=jQuery(".CU3ERscroll-holder",c).width(),t=jQuery(".CU3ERscroll",c).width(),t=n-t,r=100*t/parseInt(n),r=Math.ceil(r*b.maximum/100),k=parseInt(k.clientX-g)+h;k>t?(k=t-Math.round((parseInt(b.height)-parseInt(b.slider.thickness))/2),scrollPX=r):0>k?(k=Math.round((parseInt(b.height)-
parseInt(b.slider.thickness))/2),scrollPX=0):(scrollPercentage=100*k/parseInt(n),scrollPX=Math.ceil(scrollPercentage*b.maximum/100));CU3ER[d].scrollTo(k,scrollPX,"LR",!1)}else n=jQuery(".CU3ERscroll-holder",c).height(),t=jQuery(".CU3ERscroll",c).height(),t=n-t,r=100*t/parseInt(n),r=Math.ceil(r*b.maximum/100),k=parseInt(k.clientY-e)+m,k>t?(k=t-Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),scrollPX=r):0>k?(k=Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),scrollPX=0):
(scrollPercentage=100*k/parseInt(n),scrollPX=Math.ceil(scrollPercentage*b.maximum/100)),CU3ER[d].scrollTo(k,scrollPX,"TB",!1)}).bind("mouseup",function(){f=!1});this.scrollOptions.options=b;CU3ER[d].isTouch()&&this.attachTouchScreenScrollBehavior(b)},updateIndicator:function(b,d,c,f){var g=this.id,e=this.el;if(b==d)"undefined"!=typeof this.circularPBOptions&&"undefined"!=typeof this.circularPBOptions.startSlider&&!0==this.circularPBOptions.startSlider?(this.circularPBOptions.endDeg=360,this.animateCircularProgressbarTo(this.circularPBOptions),
CU3ER[g].initSlider()):jQuery(c).find(".CU3ERprogress").animate({width:"string"==typeof b?b:"100%"},"normal",function(){!0==f?(jQuery(".CU3ERindicator",e).fadeOut(400,function(){jQuery(this).remove()}),setTimeout(function(){CU3ER[g].initSlider()},400)):jQuery(c).fadeOut("fast").css("display","block").remove()});else{var h=jQuery(c).find(".CU3ERprogress").css("width"),m=Math.round(100/d*b);"undefined"!=typeof this.circularPBOptions&&"undefined"!=typeof this.circularPBOptions.startSlider&&!0==this.circularPBOptions.startSlider?
(this.circularPBOptions.endDeg=360*m/100,this.animateCircularProgressbarTo(this.circularPBOptions)):m>parseInt(h)&&jQuery(c).find(".CU3ERprogress").animate({width:"string"==typeof b?b:Math.round(100/d*b)+"%"})}},initSlider:function(){var b=this.id,d=this.el;this.keyboardControls&&jQuery(document).bind("keydown",function(c){"37"==c.which&&!CU3ER[b].inTransition&&(CU3ER[b].inTransition=!0,CU3ER[b].doCheck=!1,setTimeout(function(){CU3ER[b].prev()},50));"39"==c.which&&!CU3ER[b].inTransition&&(CU3ER[b].inTransition=
!0,CU3ER[b].doCheck=!1,setTimeout(function(){CU3ER[b].next()},50))});var c=CU3ER[b].xml,f;try{f=window.ActiveXObject?c.xml:(new XMLSerializer).serializeToString(c)}catch(g){f=c}if("undefined"==typeof f||""==f)f=c;var e=String(f).match(/(<licence>(.)*<\/licence>)+/gi);-1<String(e).indexOf("</licence>")&&(e=String(e).split("</licence>"));null!=e?e.push(CU3ER[b].licenseStr):e=Array(CU3ER[b].licenseStr);if(null!=this.licenceEncoded)for(c=0;c<this.licenceEncoded.length;c++)"undefined"!=typeof CU3ER[b].licenceEncoded[c].text&&
(null!=e?e.push(CU3ER[b].licenceEncoded[c].text):e=Array(CU3ER[b].licenceEncoded[c].text));if(null!=e){for(c=0;c<e.length;c++)e[c]=e[c].split("<licence>").join("").split("</licence>").join(""),e[c]=e[c].split("<![CDATA[").join("").split("]]\>").join("");var h=c=!1;if(0!=e.length){var m=document.location.href.toLowerCase(),m=m.split("https://").join("").split("http://").join("").split("www.").join(""),m=m.split("/")[0];"file:"==m&&(m="localdrive");CU3ER[b].licd=[];CU3ER[b].licd.push("");for(c=0;c<
e.length;c++){var n=String(e[c]);if(32<n.length){for(var k=f="",o=0;o<n.length;)16>o&&(f+=n.charAt(o),o++),k+=n.charAt(o),o++;n="";for(o=0;o<f.length;o++)n+=(f.charCodeAt(o)-65)/3;n>=CU3ER[b].globald&&(e[c]=k,CU3ER[b].licd.push(n+"|"))}}for(k=m.split(".");4<k.length;)k.splice(0,1);var o=k,n=m=k.join("."),q,t,r,s;for(s=0;s<CU3ER[b].licd.length;s++){m=CU3ER[b].licd[s]+n;r="";for(var p=" join www. split http:// https:// / charCodeAt length fromCharCode".split(" "),m=m[p[3]](p[5])[p[1]](p[0])[p[3]](p[4])[p[1]](p[0])[p[3]](p[2])[p[1]](p[0]),
m=m[p[3]](p[6])[0],c=0;32>c;c++){q=c%2+1;for(f=t=0;f<m[p[8]];)t+=(m[p[7]](f)+3)%(c+1)*(m[p[7]](f)+2),f+=q;t=t%94+33;60==t&&(t=58);62==t&&(t=59);r+=String[p[9]](t)}for(l=0;l<e.length;l++)h=h||r==e[l].toString();r=r.split("+").join(" ");for(l=0;l<e.length;l++)h=h||r==e[l].toString()}if(3<k.length){r="";k=k.slice(1);n=m=k.join(".");for(s=0;s<CU3ER[b].licd.length;s++){m=CU3ER[b].licd[s]+n;r="";p=" join www. split http:// https:// / charCodeAt length fromCharCode".split(" ");m=m[p[3]](p[5])[p[1]](p[0])[p[3]](p[4])[p[1]](p[0])[p[3]](p[2])[p[1]](p[0]);
m=m[p[3]](p[6])[0];for(c=0;32>c;c++){q=c%2+1;for(f=t=0;f<m[p[8]];)t+=(m[p[7]](f)+3)%(c+1)*(m[p[7]](f)+2),f+=q;t=t%94+33;60==t&&(t=58);62==t&&(t=59);r+=String[p[9]](t)}for(l=0;l<e.length;l++)h=h||r==e[l].toString();r=r.split("+").join(" ");for(l=0;l<e.length;l++)h=h||r==e[l].toString()}}k=o;if(2<k.length){k=k.slice(1);n=m=k.join(".");for(s=0;s<CU3ER[b].licd.length;s++){m=CU3ER[b].licd[s]+n;r="";p=" join www. split http:// https:// / charCodeAt length fromCharCode".split(" ");m=m[p[3]](p[5])[p[1]](p[0])[p[3]](p[4])[p[1]](p[0])[p[3]](p[2])[p[1]](p[0]);
m=m[p[3]](p[6])[0];for(c=0;32>c;c++){q=c%2+1;for(f=t=0;f<m[p[8]];)t+=(m[p[7]](f)+3)%(c+1)*(m[p[7]](f)+2),f+=q;t=t%94+33;60==t&&(t=58);62==t&&(t=59);r+=String[p[9]](t)}for(l=0;l<e.length;l++)h=h||r==e[l].toString();r=r.split("+").join(" ");for(l=0;l<e.length;l++)h=h||r==e[l].toString()}}c=h?!0:!1}else c=!1}else c=!1;jQuery(".CU3ERbackground",d).css({display:"block"});jQuery(".CU3ERslides-holder div.CU3ERslide, .CU3ERthumbs",d).css("visibility","visible");if(!c){null!=CU3ER[b].rnd&&CU3ER[b].rnd.remove();
for(c="";16>c.length;)c+=String.fromCharCode(65+Math.floor(25*Math.random()));f="stage"==json.settings.branding.align_to?this.stage:this.slides;if(this.supportCanvas()){jQuery(f).append('<div class="'+c+'"><canvas id="l-'+c+'"/></div>');CU3ER[b].rnd=jQuery("."+c);cssBrandingFixed={position:"absolute",width:"40px",height:"40px",display:"none",cursor:"pointer","z-index":1E3};e=document.getElementById("l-"+c);e.width=e.height=40;h=e.getContext("2d");m=h.getImageData(0,0,e.width,e.height);k=imgLogo.split(",");
for(c=0;c<e.height;c++)for(f=0;f<e.width;f++)t=4*(f+40*c),r=parseInt(k[f+40*c],16),o=r>>24&255,n=r>>16&255,q=r>>8&255,r&=255,m.data[t+0]=n,m.data[t+1]=q,m.data[t+2]=r,m.data[t+3]=o;h.putImageData(m,0,0)}else jQuery(f).append('<div class="'+c+'"></div>'),CU3ER[b].rnd=jQuery("."+c),CU3ER[b].rnd=jQuery("."+c,d),cssBrandingFixed={position:"absolute",width:"40px",height:"40px",cursor:"pointer",background:'transparent url("http://getcu3er.com/CU3ER-images/cu3er_logo.png") no-repeat top right',display:"none",
"z-index":1E3};optionsBranding={align_pos:CU3ER[b].json.settings.branding.align_pos,x:CU3ER[b].json.settings.branding.x,y:CU3ER[b].json.settings.branding.y,width:40,height:40,fullWidth:CU3ER[b].json.settings.width,fullheight:CU3ER[b].json.settings.height};cssBranding=this.calculatePosition(optionsBranding);"undefined"==typeof cssBranding.bottom&&(cssBranding.top="5px");"undefined"==typeof cssBranding.left&&(cssBranding.right="5px");cssBranding=jQuery.extend(cssBrandingFixed,cssBranding);CU3ER[b].rnd.css(cssBranding);
!0===this.verySlow?CU3ER[b].rnd.css("display","block").bind("click",function(){window.open("http://getcu3er.com/"+(typeof CU3ER[b].json.referral!="undefined"?"?cu3er="+CU3ER[b].json.referral:""),"CU3ER")}):CU3ER[b].rnd.fadeIn("slow").bind("click",function(){window.open("http://getcu3er.com/"+(typeof CU3ER[b].json.referral!="undefined"?"?cu3er="+CU3ER[b].json.referral:""),"CU3ER")})}this.circularPBOptions={color1:null,color2:null,opacity1:null,opacity2:null,padding:null,radius:null,startPoint:null,
endPoint:null,tempTimeout:null,shape:"linear"};var c=this.elements=jQuery(".CU3ERslide",d),v=c.length;c.each(function(){jQuery(this).css({display:"none","z-index":v});v--});CU3ER[b].handleAutoHide({prev_button:CU3ER[b].json.controls.prev_button,next_button:CU3ER[b].json.controls.next_button},CU3ER[b].json.controls.auto_play_indicator,CU3ER[b].json.description,CU3ER[b].json.thumbnails);this.transition=jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.transition,CU3ER[b].jsonOriginal.slides.transition[CU3ER[b].current]);
this.transition.scaleX="undefined"!=typeof this.json.slides.slide[this.current].image?this.json.slides.slide[this.current].image.scaleX:1;this.transition.scaleY="undefined"!=typeof this.json.slides.slide[this.current].image?this.json.slides.slide[this.current].image.scaleY:1;1==c.length&&(jQuery(".CU3ERslides-holder",d).append(jQuery(c[0]).clone()),c=this.elements=jQuery(".CU3ERslides-holder div.CU3ERslide",d));CU3ER[b].current="number"!=typeof CU3ER[b].current?0:CU3ER[b].current;jQuery(c[CU3ER[b].current]).css("display",
"block");jQuery(CU3ER[b].stage).find("a").css({"text-decoration":"none"});jQuery(CU3ER[b].stage).find("img").css({border:"none"});jQuery(".CU3ERbuttonNext, .CU3ERbuttonPrev",d).fadeIn("fast");this.rollOverPause&&jQuery(this.stage).hover(function(){if(CU3ER[b].pauseType!=2){CU3ER[b].pauseType=1;CU3ER[b].mOver=true;CU3ER[b].pause()}},function(){if(CU3ER[b].pauseType!=2){CU3ER[b].mOver=false;if(CU3ER[b].paused){CU3ER[b].pauseType=1;CU3ER[b].pause()}}});jQuery(".CU3ERindicator",d).fadeOut("fast");this.switchThumbnailClass(this.current);
this.onLoadComplete(this.slidesOrder);this.onTransitionComplete()},calculatePosition:function(b){var d={};switch(b.align_pos){case "TL":d={top:parseFloat(b.y)+"px",left:parseFloat(b.x)+"px"};break;case "TC":d={top:parseFloat(b.y)+"px",left:Math.round(Math.floor(parseFloat(b.fullWidth)/2)-Math.floor(parseFloat(b.width)/2)+parseFloat(b.x))+"px"};break;case "TR":d={top:parseFloat(b.y)+"px",left:Math.round(Math.floor(parseFloat(b.fullWidth)-parseFloat(b.width)+parseFloat(b.x)))+"px"};break;case "BL":d=
{top:Math.round(Math.floor(parseFloat(b.fullHeight)-parseFloat(b.height))+parseFloat(b.y))+"px",left:parseFloat(b.x)+"px"};break;case "BC":d={top:Math.round(Math.floor(parseFloat(b.fullHeight)-parseFloat(b.height))+parseFloat(b.y))+"px",left:Math.round(Math.floor(parseFloat(b.fullWidth)/2)-Math.floor(parseFloat(b.width)/2)+parseFloat(b.x))+"px"};break;case "BR":d={top:Math.round(Math.floor(parseFloat(b.fullHeight)-parseFloat(b.height))+parseFloat(b.y))+"px",left:Math.round(Math.floor(parseFloat(b.fullWidth)-
parseFloat(b.width)+parseFloat(b.x)))+"px"};break;case "ML":d={top:Math.round(Math.floor(parseFloat(b.fullHeight)/2)-Math.floor(parseFloat(b.height)/2)+parseFloat(b.y))+"px",left:parseFloat(b.x)+"px"};break;case "MC":d={top:Math.round(Math.floor(parseFloat(b.fullHeight)/2)-Math.floor(parseFloat(b.height)/2)+parseFloat(b.y))+"px",left:Math.round(Math.floor(parseFloat(b.fullWidth)/2)-Math.floor(parseFloat(b.width)/2)+parseFloat(b.x))+"px"};break;case "MR":d={top:Math.round(Math.floor(parseFloat(b.fullHeight)/
2)-Math.floor(parseFloat(b.height)/2)+parseFloat(b.y))+"px",left:Math.round(Math.floor(parseFloat(b.fullWidth)-parseFloat(b.width)+parseFloat(b.x)))+"px"}}return d},attachTouchScreenScrollBehavior:function(b){var d=this.id,c=this.el,f=0,g=0;CU3ER[d].debug("attaching scroll behavior to thumbs for touch screen");jQuery(".CU3ERthumbs",c).data("binded","");var e=jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb",c),h=!1;jQuery(".CU3ERthumbs",c).bind("touchend",function(){jQuery(".CU3ERthumbs",c).data("binded",
"")});jQuery(".CU3ERthumbs",c).bind("touchstart",function(){jQuery(".CU3ERthumbs",c).data("binded","");h=!0});jQuery(".CU3ERthumbs",c).bind("touchmove",function(e){e.preventDefault();e=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];""==jQuery(".CU3ERthumbs",c).data("binded")&&(startMarginX=parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-left")),startMarginY=parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-top")),f=e.pageX,g=e.pageY);jQuery(".CU3ERthumbs",c).data("binded","touchmove");
moveX=e.pageX-f;var n=e.pageY-g;f=e.pageX;g=e.pageY;if("horizontal"==b.scroll){if(!(10>Math.abs(moveX))){h=!1;scrollPXMovement=-(parseInt(b.thumb.width)+Math.abs(parseInt(b.thumb.spacing_x)));e=parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-left"));scrollPX=0>moveX?e+scrollPXMovement:e-scrollPXMovement;if("undefined"!=typeof b.scroller)var k=jQuery(".CU3ERscroll-holder",c)?jQuery(".CU3ERscroll-holder",c).width():jQuery(".CU3ERThumbsScroll",c).width(),e=jQuery(".CU3ERscroll",c).width(),e=100*
(k-e)/parseInt(k),e=e*b.maximum/100;else e=parseInt(b.maximum)-parseInt(b.width)+CU3ER[d].slidesTotal*Math.abs(b.thumb.spacing_x);scrollPX=0>scrollPX?scrollPX:0;scrollPX=scrollPX<-e?-e:scrollPX;Math.abs(scrollPX)<Math.abs(scrollPXMovement)/2||("undefined"!=typeof b.scroller?(e=Math.round((parseInt(b.height)-parseInt(b.slider.thickness))/2),scrollPercentage=100*(Math.abs(scrollPX)/b.maximum),scrollIt=Math.ceil(scrollPercentage*parseInt(k)/100),scrollIt=scrollIt>e?scrollIt:e):scrollIt=0,CU3ER[d].scrollTo(scrollIt,
-scrollPX,"LR",!0))}}else if(!(10>Math.abs(n))&&(h=!1,scrollPXMovement=-(parseInt(b.thumb.height)+Math.abs(parseInt(b.thumb.spacing_y))),e=parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-top")),scrollPX=0>moveX?e+scrollPXMovement:e-scrollPXMovement,"undefined"!=typeof b.scroller?(k=jQuery(".CU3ERscroll-holder",c)?jQuery(".CU3ERscroll-holder",c).height():jQuery(".CU3ERThumbsScroll",c).height(),e=jQuery(".CU3ERscroll",c).height(),e=100*(k-e)/parseInt(k),e=e*b.maximum/100):e=parseInt(b.maximum)-
parseInt(b.height)+CU3ER[d].slidesTotal*Math.abs(b.thumb.spacing_y),scrollPX=0>scrollPX?scrollPX:0,scrollPX=scrollPX<-e?-e:scrollPX,!(Math.abs(scrollPX)<Math.abs(scrollPXMovement)/2)))"undefined"!=typeof b.scroller?(e=Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),scrollPercentage=100*(Math.abs(scrollPX)/b.maximum),scrollIt=Math.ceil(scrollPercentage*parseInt(k)/100),scrollIt=scrollIt>e?scrollIt:e):scrollIt=0,CU3ER[d].scrollTo(scrollIt,-scrollPX,"TB",!0)});e=jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb",
c);e.each(function(b){jQuery(e[b]).bind("touchend",function(){h&&(h=!1,CU3ER[d].current!=b&&!CU3ER[d].inTransition&&(CU3ER[d].inTransition=!0,CU3ER[d].doCheck=!1,setTimeout(function(){CU3ER[d].skipTo(b,!0,!0)},50)));return!1})})},repositionThumbs:function(){var b=this.id,d=this.el;if("undefined"!=typeof this.scrollOptions.maximumWidth&&"undefined"!=typeof this.scrollOptions.options){var c;c=this.current+1;if("horizontal"==CU3ER[b].scrollOptions.options.scroll)var f=parseInt(CU3ER[b].scrollOptions.options.thumb.width)+
parseInt(CU3ER[b].scrollOptions.options.thumb.spacing_x),g=parseInt(CU3ER[b].scrollOptions.maximumWidth),e=-parseInt(jQuery(".CU3ERthumbs-holder",d).css("margin-left"));else f=parseInt(CU3ER[b].scrollOptions.options.thumb.height)+parseInt(CU3ER[b].scrollOptions.options.thumb.spacing_y),g=parseInt(CU3ER[b].scrollOptions.maximumHeight),e=-parseInt(jQuery(".CU3ERthumbs-holder",d).css("margin-top"));var h=!1,m=0,n=[];for(i=Math.max(c-g,0);i<c;i++)n.push(i*f);Array.max=function(b){return Math.max.apply(Math,
b)};Array.min=function(b){return Math.min.apply(Math,b)};e>=Array.min(n)&&e<=Array.max(n)?h=!0:m=e<Array.min(n)?Array.min(n):Array.max(n);c=[h,m];c[0]||(f="horizontal"==CU3ER[b].scrollOptions.options.scroll?"LR":"TB","undefined"!=typeof CU3ER[b].scrollOptions.options.scroller?("horizontal"==CU3ER[b].scrollOptions.options.scroll?(d=jQuery(".CU3ERscroll-holder",d)?jQuery(".CU3ERscroll-holder",d).width():jQuery(".CU3ERThumbsScroll",d).width(),g=Math.round((parseInt(CU3ER[b].scrollOptions.options.height)-
parseInt(CU3ER[b].scrollOptions.options.slider.thickness))/2)):(d=jQuery(".CU3ERscroll-holder",d)?jQuery(".CU3ERscroll-holder",d).height():jQuery(".CU3ERThumbsScroll",d).height(),g=Math.round((parseInt(CU3ER[b].scrollOptions.options.width)-parseInt(CU3ER[b].scrollOptions.options.slider.thickness))/2)),scrollPercentage=100*(Math.abs(c[1])/CU3ER[b].scrollOptions.options.maximum),scrollIt=Math.ceil(scrollPercentage*parseInt(d)/100),scrollIt=scrollIt>g?scrollIt:g):scrollIt=0,this.scrollTo(scrollIt,c[1],
f,!0))}},attachScrollBehavior:function(b){var d=this.id,c=this.el;CU3ER[d].debug("attaching scroll behavior to thumbs since there is no scroller");jQuery(".CU3ERthumbs",c).bind("mouseover",function(f){var g=jQuery(f.currentTarget).offset();if("horizontal"==b.scroll){var e=jQuery(".CU3ERThumbsScroll",c).width(),h=jQuery(".CU3ERthumbs-holder .CU3ERThumb",c),h=(jQuery(h[0]).width()+parseInt(jQuery(h[0]).css("left")))*h.length;if(h>e){var e=Math.round(g.left+parseInt(b.width)/3),m=Math.round(g.left+2*
(parseInt(b.width)/3)),f=parseInt(f.clientX),g=parseInt(b.maximum)-parseInt(b.width)+CU3ER[d].slidesTotal*Math.abs(b.thumb.spacing_x);f<e?(h=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-left")),scrollPXMovement=50*Math.floor((e-f)*(e-f)/(e+h)),scrollPX=0<h-scrollPXMovement?h-scrollPXMovement:0,CU3ER[d].scrollTo(0,scrollPX,"LR",!0)):f>m&&(h=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-left")),scrollPXMovement=50*Math.floor((m-f)*(m-f)/(m+h)),scrollPX=h+scrollPXMovement<g&&0<=h+scrollPXMovement?
h+scrollPXMovement:g,CU3ER[d].scrollTo(0,scrollPX,"LR",!0))}}else e=jQuery(".CU3ERThumbsScroll",c).height(),h=jQuery(".CU3ERthumbs-holder .CU3ERThumb",c),h=(jQuery(h[0]).height()+parseInt(jQuery(h[0]).css("top")))*h.length,h>e&&(e=Math.round(g.top+parseInt(b.height)/3),m=Math.round(g.top+2*(parseInt(b.height)/3)),f=parseInt(f.clientY),g=parseInt(b.maximum)-parseInt(b.height)+CU3ER[d].slidesTotal*b.thumb.spacing_y,f<e?(h=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-top")),scrollPXMovement=
50*Math.floor((e-f)*(e-f)/(e+h)),scrollPX=0<h-scrollPXMovement?h-scrollPXMovement:0,CU3ER[d].scrollTo(0,scrollPX,"TB",!0)):f>m&&(h=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-top")),scrollPXMovement=50*Math.floor((m-f)*(m-f)/(m+h)),scrollPX=h+scrollPXMovement<g?h+scrollPXMovement:g,CU3ER[d].scrollTo(0,scrollPX,"TB",!0)))});this.scrollOptions.options=b;CU3ER[d].isTouch()&&this.attachTouchScreenScrollBehavior(b)},scrollTo:function(b,d,c,f){var g=this.el;!1===f?"TB"==c?(jQuery(".CU3ERscroll",
g).stop().css({top:b}),jQuery(".CU3ERthumbs-holder",g).stop().css({marginTop:-d+"px"})):(jQuery(".CU3ERscroll",g).stop().css({left:b}),jQuery(".CU3ERthumbs-holder",g).stop().css({marginLeft:-d+"px"})):"TB"==c?(jQuery(".CU3ERscroll",g).stop().animate({top:b},"slow"),jQuery(".CU3ERthumbs-holder",g).stop().animate({marginTop:-d+"px"},"noramal")):(jQuery(".CU3ERscroll",g).stop().animate({left:b},"slow"),jQuery(".CU3ERthumbs-holder",g).stop().animate({marginLeft:-d+"px"},"normal"))},next:function(){if(this.isFlash)this.registerFlash(),
this.swf.next();else if(!0!==this.inTransition||!1===this.doCheck)this.stopFlag=!0,clearTimeout(this.circularPBOptions.tempTimeout),this.nextFlag=!0,this.skipTo(this.calculateNext(this.current),!0,!1)},prev:function(){if(this.isFlash)this.registerFlash(),this.swf.prev();else if(!0!==this.inTransition||!1===this.doCheck)this.stopFlag=!0,clearTimeout(this.circularPBOptions.tempTimeout),this.nextFlag=!1,this.skipTo(this.calculatePrevious(this.current),!0,!1)},skipTo:function(b,d,c){var f=this.id,g=this.el;
if(this.isFlash)this.registerFlash(),this.swf.skipTo(b-1);else if(!0!==this.inTransition||!1==this.doCheck){this.doCheck=!0;b="undefined"!=typeof d&&!0===d?b:b-1;d="undefined"!=typeof c?c:!0;this.inTransition=!0;clearTimeout(this.tempTimeout[this.current]);clearTimeout(this.tempTimeout[b]);clearTimeout(this.circularPBOptions.tempTimeout);this.stopFlag=!0;c=this.elements;jQuery(c[b]).hasClass("notLoaded")?(jQuery(c[CU3ER[f].current]).parent().append('<div class="CU3ERpreloader"></div>'),loaderCSS=
{width:50,height:50,align_pos:"MC",x:0,y:0,fullWidth:CU3ER[f].json.slides.width,fullHeight:CU3ER[f].json.slides.height},preloaderCSSFinal=CU3ER[f].calculatePosition(loaderCSS),jQuery(".CU3ERpreloader",g).css(preloaderCSSFinal).css({"z-index":1E3}),jQuery(c[CU3ER[f].calculateNext(CU3ER[f].current)]).bind("classChanged",function(){CU3ER[f].skipTo(b,!0,!0)})):(jQuery(".CU3ERpreloader",g).remove(),this.nextSlide=b,this.startTransition(d));var d=CU3ER[f].xml,e;try{e=window.ActiveXObject?d.xml:(new XMLSerializer).serializeToString(d)}catch(h){e=
d}if("undefined"==typeof e||""==e)e=d;c=String(e).match(/(<licence>(.)*<\/licence>)+/gi);-1<String(c).indexOf("</licence>")&&(c=String(c).split("</licence>"));null!=c?c.push(CU3ER[f].licenseStr):c=Array(CU3ER[f].licenseStr);if(null!=this.licenceEncoded)for(e=0;e<this.licenceEncoded.length;e++)"undefined"!=typeof CU3ER[f].licenceEncoded[e].text&&(null!=c?c.push(CU3ER[f].licenceEncoded[e].text):c=Array(CU3ER[f].licenceEncoded[e].text));if(null!=c){for(e=0;e<c.length;e++)c[e]=c[e].split("<licence>").join("").split("</licence>").join(""),
c[e]=c[e].split("<![CDATA[").join("").split("]]\>").join("");var m=e=!1;if(0!=c.length){var n=document.location.href.toLowerCase(),n=n.split("https://").join("").split("http://").join("").split("www.").join(""),n=n.split("/")[0];"file:"==n&&(n="localdrive");CU3ER[f].licd=[];CU3ER[f].licd.push("");for(e=0;e<c.length;e++){var k=String(c[e]);if(32<k.length){for(var o=d="",q=0;q<k.length;)16>q&&(d+=k.charAt(q),q++),o+=k.charAt(q),q++;k="";for(q=0;q<d.length;q++)k+=(d.charCodeAt(q)-65)/3;k>=CU3ER[f].globald&&
(c[e]=o,CU3ER[f].licd.push(k+"|"))}}for(o=n.split(".");4<o.length;)o.splice(0,1);var q=o,k=n=o.join("."),t,r,s;for(s=0;s<CU3ER[f].licd.length;s++){n=CU3ER[f].licd[s]+k;r="";var p=" join www. split http:// https:// / charCodeAt length fromCharCode".split(" "),n=n[p[3]](p[5])[p[1]](p[0])[p[3]](p[4])[p[1]](p[0])[p[3]](p[2])[p[1]](p[0]),n=n[p[3]](p[6])[0];for(e=0;32>e;e++){t=e%2+1;for(d=b=0;d<n[p[8]];)b+=(n[p[7]](d)+3)%(e+1)*(n[p[7]](d)+2),d+=t;b=b%94+33;60==b&&(b=58);62==b&&(b=59);r+=String[p[9]](b)}for(l=
0;l<c.length;l++)m=m||r==c[l].toString();r=r.split("+").join(" ");for(l=0;l<c.length;l++)m=m||r==c[l].toString()}if(3<o.length){r="";o=o.slice(1);k=n=o.join(".");for(s=0;s<CU3ER[f].licd.length;s++){n=CU3ER[f].licd[s]+k;r="";p=" join www. split http:// https:// / charCodeAt length fromCharCode".split(" ");n=n[p[3]](p[5])[p[1]](p[0])[p[3]](p[4])[p[1]](p[0])[p[3]](p[2])[p[1]](p[0]);n=n[p[3]](p[6])[0];for(e=0;32>e;e++){t=e%2+1;for(d=b=0;d<n[p[8]];)b+=(n[p[7]](d)+3)%(e+1)*(n[p[7]](d)+2),d+=t;b=b%94+33;
60==b&&(b=58);62==b&&(b=59);r+=String[p[9]](b)}for(l=0;l<c.length;l++)m=m||r==c[l].toString();r=r.split("+").join(" ");for(l=0;l<c.length;l++)m=m||r==c[l].toString()}}o=q;if(2<o.length){o=o.slice(1);k=n=o.join(".");for(s=0;s<CU3ER[f].licd.length;s++){n=CU3ER[f].licd[s]+k;r="";p=" join www. split http:// https:// / charCodeAt length fromCharCode".split(" ");n=n[p[3]](p[5])[p[1]](p[0])[p[3]](p[4])[p[1]](p[0])[p[3]](p[2])[p[1]](p[0]);n=n[p[3]](p[6])[0];for(e=0;32>e;e++){t=e%2+1;for(d=b=0;d<n[p[8]];)b+=
(n[p[7]](d)+3)%(e+1)*(n[p[7]](d)+2),d+=t;b=b%94+33;60==b&&(b=58);62==b&&(b=59);r+=String[p[9]](b)}for(l=0;l<c.length;l++)m=m||r==c[l].toString();r=r.split("+").join(" ");for(l=0;l<c.length;l++)m=m||r==c[l].toString()}}e=m?!0:!1}else e=!1}else e=!1;if(!e){null!=CU3ER[f].rnd&&CU3ER[f].rnd.remove();for(e="";16>e.length;)e+=String.fromCharCode(65+Math.floor(25*Math.random()));d="stage"==json.settings.branding.align_to?this.stage:this.slides;if(this.supportCanvas()){jQuery(d).append('<div class="'+e+'"><canvas id="l-'+
e+'"/></div>');CU3ER[f].rnd=jQuery("."+e);cssBrandingFixed={position:"absolute",width:"40px",height:"40px",cursor:"pointer","z-index":1E3};g=document.getElementById("l-"+e);g.width=g.height=40;c=g.getContext("2d");m=c.getImageData(0,0,g.width,g.height);n=imgLogo.split(",");for(e=0;e<g.height;e++)for(d=0;d<g.width;d++)t=4*(d+40*e),r=parseInt(n[d+40*e],16),o=r>>24&255,q=r>>16&255,k=r>>8&255,r&=255,m.data[t+0]=q,m.data[t+1]=k,m.data[t+2]=r,m.data[t+3]=o;c.putImageData(m,0,0)}else jQuery(d).append('<div class="'+
e+'"></div>'),CU3ER[f].rnd=jQuery("."+e),CU3ER[f].rnd=jQuery("."+e,g),cssBrandingFixed={position:"absolute",width:"40px",height:"40px",cursor:"pointer",background:'transparent url("http://getcu3er.com/CU3ER-images/cu3er_logo.png") no-repeat top right',"z-index":1E3};optionsBranding={align_pos:CU3ER[f].json.settings.branding.align_pos,x:CU3ER[f].json.settings.branding.x,y:CU3ER[f].json.settings.branding.y,width:40,height:40,fullWidth:CU3ER[f].json.settings.width,fullheight:CU3ER[f].json.settings.height};
cssBranding=this.calculatePosition(optionsBranding);"undefined"==typeof cssBranding.bottom&&(cssBranding.top="5px");"undefined"==typeof cssBranding.left&&(cssBranding.right="5px");cssBranding=jQuery.extend(cssBrandingFixed,cssBranding);CU3ER[f].rnd.css(cssBranding);CU3ER[f].rnd.bind("click",function(){window.open("http://getcu3er.com/"+(typeof CU3ER[f].json.referral!="undefined"?"?cu3er="+CU3ER[f].json.referral:""),"CU3ER")})}}},clearTimeouts:function(){var b=this.id;clearTimeout(this.tempTimeout[this.nextSlide]);
clearTimeout(this.tempTimeout[this.current]);for(i in this.tempTimeout)clearTimeout(CU3ER[b].tempTimeout[i]),delete CU3ER[b].tempTimeout[i];clearTimeout(this.tempTimeout)},destroy:function(){var b=this.id;this.paused=!0;clearTimeout(this.tempTimeout[this.nextSlide]);clearTimeout(this.tempTimeout[this.current]);for(i in this.tempTimeout)clearTimeout(CU3ER[b].tempTimeout[i]),delete CU3ER[b].tempTimeout[i];clearTimeout(this.tempTimeout);CU3ER[b]=null},destroyAll:function(){for(i in CU3ER){CU3ER[i].paused=
!0;clearTimeout(CU3ER[i].tempTimeout[this.nextSlide]);clearTimeout(CU3ER[i].tempTimeout[this.current]);for(a in CU3ER[i].tempTimeout)clearTimeout(CU3ER[i].tempTimeout[a]),delete CU3ER[i].tempTimeout[a];clearTimeout(CU3ER[i].tempTimeout)}},startTransition:function(b){var d=this.id,c=this.el;jQuery(".CU3ERbackground",c).css("display","block");this.clearTimeouts();jQuery(".CU3ERtransition",c).remove();this.first=this.last=!1;if(1==this.json.slides.slide.length)var f=0,g=0;else!0==b?this.current==parseInt(this.slidesTotal-
1)&&0==this.nextSlide?(this.directionReverse=!1,this.last=!0,f=this.json.slides.slide[this.current].originalPosition,g=this.current):0==this.current&&this.nextSlide==parseInt(this.slidesTotal-1)?(this.first=this.directionReverse=!0,f=this.json.slides.slide[this.nextSlide].originalPosition,g=this.nextSlide):this.current>this.nextSlide?(this.directionReverse=!0,f=this.json.slides.slide[this.nextSlide].originalPosition,g=this.nextSlide):this.current<this.nextSlide&&(this.directionReverse=!1,f=this.json.slides.slide[this.current].originalPosition,
g=this.current):!0==this.nextFlag?(this.directionReverse=!1,f=this.json.slides.slide[this.current].originalPosition,g=this.current):(this.directionReverse=!0,f=this.json.slides.slide[this.nextSlide].originalPosition,g=this.nextSlide);f="undefined"!=typeof f?f:0;this.onTransition(parseInt(f)+1);this.transition=jQuery.extend(!0,{},{type:"3D",columns:"3",rows:"3",type2D:"slide",flipAngle:"180",flipOrder:"315",flipShader:"none",flipOrderFromCenter:"false",flipDirection:"right",flipColor:"0x878787",flipBoxDepth:"10",
flipDepth:"250",flipEasing:"Sine.easeOut",flipDuration:".6",flipDelay:".15"},CU3ER[d].jsonOriginal.defaults.transition,CU3ER[d].jsonOriginal.slides.transition[f]);this.transition.position3d=g;this.transition.classNo=f;this.transition.scaleX="undefined"!=typeof this.json.slides.slide[f].image?this.json.slides.slide[f].image.scaleX:1;this.transition.scaleY="undefined"!=typeof this.json.slides.slide[f].image?this.json.slides.slide[f].image.scaleY:1;b="90"==this.transition.flipOrder||"270"==this.transition.flipOrder?
parseInt(this.transition.rows):"0"==this.transition.flipOrder||"180"==this.transition.flipOrder?parseInt(this.transition.columns):parseInt(this.transition.rows)*parseInt(this.transition.columns);this.transition.time=parseFloat(parseFloat(this.transition.flipDuration)+parseFloat(this.transition.flipDelay)*(b-1));b=this.elements;this.switchThumbnailClass(this.nextSlide);b.each(function(b){b!=CU3ER[d].current&&b!=CU3ER[d].nextSlide&&jQuery(this).css("display","none")});jQuery(".CU3ERlayer",c).css("display",
"block");2==b.length?jQuery(b[0]).trigger("startTransition"):jQuery(b[CU3ER[d].current]).trigger("startTransition");(this.is3D()||this.isCameraFlat())&&!0!==this.force_simple?"3D"==this.transition.type||1<parseInt(this.transition.rows)||1<parseInt(this.transition.columns)?this.transitionSlices():"undefined"!=typeof this.transition.type2D||"slide"==this.transition.type2D?this.transitionSlices():this.transitionFade():this.transitionFade()},transitionFade:function(){var b=this.id,d=this.elements;jQuery(d).css({"z-index":1,
opacity:1});d.each(function(c){c!=CU3ER[b].current&&jQuery(this).css({display:"none"})});var c="2D"==this.transition.type&&"fade"==this.transition.type2D?1E3*parseFloat(CU3ER[b].transition.time):1E3*parseFloat(this.transition.flipDuration),f="undefined"!=typeof CU3ER[b].transition.flipEasing?CU3ER[b].transition.flipEasing:"Sine.easeInOut";this.nextSlide<this.current?!0===this.verySlow?(jQuery(d[CU3ER[b].nextSlide]).css({display:"block","z-index":1}),jQuery(d[this.current]).css({"z-index":2,display:"none"}),
timeout=Math.min(1E3,c),setTimeout(function(){CU3ER[b].onTransitionComplete()},timeout)):(jQuery(d[CU3ER[b].nextSlide]).css({display:"block","z-index":1,"-wekbit-transform":"translateZ(2px)"}),jQuery(d[this.current]).css({"z-index":2,opacity:1,"-webkit-animation":"","-wekbit-transform":"translateZ(1px)","-moz-animation":"","-moz-transform":"translateZ(1px)"}).fadeOut({duration:c,easing:CU3ER[b].easingValues[f],complete:function(){CU3ER[b].onTransitionComplete()}})):!0===this.verySlow?(jQuery(d[this.nextSlide]).css({"z-index":2,
display:"block"}),jQuery(d[this.current]).css({"z-index":1,display:"none"}),timeout=Math.min(1E3,c),setTimeout(function(){CU3ER[b].onTransitionComplete()},timeout)):(jQuery(d[this.current]).css({"z-index":1,"-webkit-transform":"translateZ(2px)","-moz-transform":"translateZ(2px)"}),jQuery(d[this.nextSlide]).css({"z-index":2,"-webkit-transform":"translateZ(1px)","-moz-transform":"translateZ(1px)"}).fadeIn({duration:c,easing:CU3ER[b].easingValues[f],complete:function(){jQuery(d[CU3ER[b].current]).css({opacity:1,
display:"none"});CU3ER[b].onTransitionComplete()}}))},transitionSlices:function(){var b=this.id,d=this.el;jQuery(".CU3ERtransition-holder",d).css("display","block");var c={fade:1,up:2,down:3,left:4,right:5,random:6},f=this.is3D()?this.transition.type:"2D",g=[],e=this.transition.flipDirection.split(",");if("fade"==this.transition.type2D&&"2D"==f)c=1;else if(1<e.length){for(t=0;t<e.length;t++)g[t]=c[e[t]];c=6}else c=c[e[0]];var h=this.directionReverse,g=this.setDirections(this.transition,c,g),c=parseInt(this.transition.rows)*
parseInt(this.transition.columns),e=this.elements,m="",n=0,k=0,o=Math.ceil(jQuery(".CU3ERslides-holder",d).width()/parseInt(this.transition.columns)),q=Math.ceil(jQuery(".CU3ERslides-holder",d).height()/parseInt(this.transition.rows)),t=jQuery(".CU3ERslides-holder",d).width(),r=jQuery(".CU3ERslides-holder",d).height();jQuery.browser.msie&&(jQuery(e[CU3ER[b].current]).css("display","none"),jQuery(e[CU3ER[b].nextSlide]).css("display","block"));jQuery(".CU3ERtransition-holder",d).append('<div class="CU3ERtransition"></div>').find(".CU3ERtransition").css({position:"absolute",
top:0,left:0,margin:0,padding:0,width:t+"px",height:r+"px","z-index":400});t=function(c){var e=jQuery(".CU3ERslides-holder",d),f=e.width(),e=e.height();c.el.width=f;c.el.height=e;var g=c.el.getContext("2d");if(c.bgcolor!=null&&c.bgcolor!="transparent"){for(var h=c.bgcolor.replace("0x","").match(/(.{2})/g),m=3;m--;)h[m]=parseInt(h[m],16);h="rgba("+h.join(", ")+", 100)";c.bgcolor=h;g.fillStyle=h}else g.fillStyle="rgba(255, 255, 255, 0)";g.fillRect(0,0,f,e);if(typeof jQuery(c.image).attr("src")!="undefined"){h=
jQuery(c.image)[0];if(typeof jQuery(c.image).attr("rel")!="undefined"&&jQuery(c.image).attr("rel")!=""){var k=jQuery(c.image).attr("rel").split(":");k[0]!=c.scaleX&&k[5]!=h.width&&(c.scaleX=k[0]);k[1]!=c.scaleY&&k[6]!=h.height&&(c.scaleY=k[1]);k[7]=="inside"?c.scaleX=c.scaleY=1/Math.max(h.width/parseInt(f),h.height/parseInt(e)):k[7]=="outside"&&(c.scaleX=c.scaleY=1/Math.min(h.width/parseInt(f),h.height/parseInt(e)))}var m=isNaN(parseInt(jQuery(c.image).css("left")))?0:parseInt(jQuery(c.image).css("left")),
n=isNaN(parseInt(jQuery(c.image).css("top")))?0:parseInt(jQuery(c.image).css("top")),o,p;o=m<0?m:0;p=n<0?n:0;var q=jQuery("<canvas>")[0];if(CU3ER[b].isCameraFlat()&&!CU3ER[b].is3D())if(jQuery.browser.mozilla)var s=parseInt(jQuery(h).css("width"))!=k[5]?parseInt(jQuery(h).css("width")):k[5],k=parseInt(jQuery(h).css("height"))!=k[6]?parseInt(jQuery(h).css("height")):k[6];else{s=k[5];k=k[6]}else{s=h.width*parseFloat(c.scaleX);k=h.height*parseFloat(c.scaleY)}q.width=Math.max(h.width,s);q.height=Math.max(h.height,
k);var r=q.getContext("2d");if(c.bgcolor!=null){r.fillStyle=c.bgcolor;r.fillRect(0,0,Math.max(h.width,s),Math.max(h.height,k))}try{r.drawImage(h,o,p,s,k)}catch(t){CU3ER[b].debug(o,p,s,k)}try{f=parseFloat(c.scaleX)>1?parseInt(Math.min(s,f)):parseInt(Math.min(h.width,f));e=parseFloat(c.scaleY)>1?parseInt(Math.min(k,e)):parseInt(Math.min(h.height,e));g.drawImage(q,0,0,f,e,Math.max(0,m),Math.max(0,n),f,e)}catch(v){CU3ER[b].debug(f,e,Math.max(0,m),Math.max(0,n),s,k)}}};if(this.supportCanvas()){if("undefined"==
typeof CU3ER[b].jsonOriginal.slides.slide.length)var r=jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.slide,CU3ER[b].jsonOriginal.slides.slide),s=jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.slide,CU3ER[b].jsonOriginal.slides.slide);else r=jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.slide,CU3ER[b].json.slides.slide[this.current]),s=jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.slide,CU3ER[b].json.slides.slide[this.nextSlide]);var p=jQuery("<canvas>"),v="undefined"!=typeof r.color?
r.color:null;null==v&&(v="undefined"!=typeof CU3ER[b].json.settings.background.color?CU3ER[b].json.settings.background.color:null);v="undefined"!=typeof r.transparent&&"true"==r.transparent?"transparent":v;t({scaleX:"2D"==f&&!CU3ER[b].is3D()&&!CU3ER[b].isCameraFlat()?1:"undefined"!=typeof r.image?r.image.scaleX:1,scaleY:"2D"==f&&!CU3ER[b].is3D()&&!CU3ER[b].isCameraFlat()?1:"undefined"!=typeof r.image?r.image.scaleY:1,bgcolor:v,image:jQuery(e[CU3ER[b].current]).find("img")[0],el:p[0]});var w=jQuery("<canvas>"),
v="undefined"!=typeof s.color?s.color:null;null==v&&(v="undefined"!=typeof CU3ER[b].json.settings.background.color?CU3ER[b].json.settings.background.color:null);v="undefined"!=typeof s.transparent&&"true"==s.transparent?"transparent":v;t({scaleX:"2D"==f&&!CU3ER[b].is3D()&&!CU3ER[b].isCameraFlat()?1:"undefined"!=typeof s.image?s.image.scaleX:1,scaleY:"2D"==f&&!CU3ER[b].is3D()&&!CU3ER[b].isCameraFlat()?1:"undefined"!=typeof s.image?s.image.scaleY:1,bgcolor:v,image:jQuery(e[CU3ER[b].nextSlide]).find("img")[0],
el:w[0]})}for(var r=1,t=s=0;t<c;t++){var v=7>parseInt(CU3ER[b].transition.rows)*parseInt(CU3ER[b].transition.columns)?"visible":"hidden",u="visible",B=n*o,A=k*q;if(1==CU3ER[b].transition.columns){B=0;A=k*q;if(k==c-1)var x=jQuery(".CU3ERtransition-holder",d).height()-(c-1)*q,A=k*q-(q-x);k++;v="visible"}else 1==CU3ER[b].transition.rows?(A=0,B=n*o,n==c-1&&(x=jQuery(".CU3ERtransition-holder",d).width()-(c-1)*o,B=n*o-(o-x)),n++,v="visible"):0==n%(parseInt(CU3ER[b].transition.columns)-1)?0<n&&0<parseInt(CU3ER[b].transition.columns)?
(x=jQuery(".CU3ERtransition-holder",d).width()-(parseInt(CU3ER[b].transition.columns)-1)*o,B=n*o-(o-x),k==parseInt(CU3ER[b].transition.rows)-1&&(x=jQuery(".CU3ERtransition-holder",d).height()-(parseInt(CU3ER[b].transition.rows)-1)*q,A=k*q-(q-x)),n=0,k++):(k==parseInt(CU3ER[b].transition.rows)-1&&(x=jQuery(".CU3ERtransition-holder",d).height()-(parseInt(CU3ER[b].transition.rows)-1)*q,A=k*q-(q-x)),n++):(k==parseInt(CU3ER[b].transition.rows)-1&&(x=jQuery(".CU3ERtransition-holder",d).height()-(parseInt(CU3ER[b].transition.rows)-
1)*q,A=k*q-(q-x)),n++);s++;r==parseInt(CU3ER[b].transition.rows)&&(v="visible");s==parseInt(CU3ER[b].transition.columns)&&(v="visible",s=0,r++);var m=A,y=B;if(h){var D=[];for(a=0;a<g.length;a++){switch(g[a]){case 1:x=1;break;case 2:x=3;break;case 3:x=2;break;case 4:x=5;break;case 5:x=4;break;default:x=2}D[a]=x}}else D=g;switch(D[t]){case 1:var x={top:0,position:"absolute",left:0,display:"none"},z={top:0,position:"absolute",left:0};break;case 3:jQuery.browser.msie?(x={top:q+"px",position:"absolute",
left:0},z={top:0,position:"absolute",left:0}):(x={top:q+"px",position:"absolute"},z={});break;case 2:jQuery.browser.msie?(x={top:-parseInt(q)+"px",position:"absolute",left:0,"margin-top":0},z={top:0,position:"absolute",left:0}):(x={"margin-top":-(2*parseInt(q))+"px",position:"absolute"},z={});break;case 4:jQuery.browser.msie?(x={"margin-left":parseInt(o+3)+"px","float":"left",top:0,left:0},z={"float":"left",top:0,left:0}):(x={"margin-left":parseInt(o+3)+"px","float":"left"},z={"float":"left"});break;
case 5:x=jQuery.browser.msie?{"margin-left":-parseInt(o+3)+"px","float":"left",top:0,left:0}:{"margin-left":-parseInt(o+3)+"px","float":"left"};z={"float":"left"};break;default:jQuery.browser.msie?(x={top:q+"px",position:"absolute",left:0},z={top:0,position:"absolute",left:0}):(x={top:q+"px",position:"absolute"},z={})}if("2D"==f)this.supportCanvas()?(m=jQuery("<div>").attr("class","CU3ERtrans").css({position:"absolute",left:y+"px",top:m+"px",width:parseInt(o)+2+"px",height:parseInt(q)+1+"px","z-index":400,
overflow:"hidden"}).append('<div class="CU3ERsliceHolder"><div class="CU3ERcurrentSlice" style="width: '+o+"px; height: "+q+'px;"></div><div class="CU3ERnextSlice"></div></div>'),jQuery(m).find(".CU3ERsliceHolder").css({width:"5000px",height:"5000px",position:"relative",top:0,left:0}).find(".CU3ERcurrentSlice").css({width:parseFloat(o)+"px",height:parseFloat(q)+"px",overflow:"hidden"}).css(z).append(jQuery(e[CU3ER[b].current]).find("img").clone()).find("img").replaceWith("<canvas>"),jQuery(m).find(".CU3ERnextSlice").css({width:parseFloat(o)+
"px",height:parseFloat(q)+"px",postion:"absolute",overflow:"hidden",position:"absolute"}).css(x).append(jQuery(e[CU3ER[b].nextSlide]).find("img").clone()).find("img").replaceWith("<canvas>"),jQuery(m).find(".CU3ERcurrentSlice").find("canvas").each(function(){var c=p[0];this.width=o;this.height=q;var e=this.getContext("2d"),d=B,f=A;try{e.drawImage(c,d,f,o,q,0,0,o,q)}catch(g){CU3ER[b].debug(d,f,o,q,g)}}),jQuery(m).find(".CU3ERnextSlice").find("canvas").each(function(){var c=w[0];this.width=o;this.height=
q;var e=this.getContext("2d"),d=B,f=A;try{e.drawImage(c,d,f,o,q,0,0,o,q)}catch(g){CU3ER[b].debug(d,f,o,q,g)}})):(m=jQuery("<div>").attr("class","CU3ERtrans").css({position:"absolute",left:y+"px",top:m+"px",width:parseInt(o)+2+"px",height:parseInt(q)+1+"px","z-index":400,overflow:"hidden"}).append('<div class="CU3ERsliceHolder"><div class="CU3ERcurrentSlice" style="width: '+o+"px; height: "+q+'px;"></div><div class="CU3ERnextSlice" style="width: '+o+"px; height: "+q+'px;"></div></div>'),jQuery(m).find(".CU3ERsliceHolder").css({width:"700px",
height:"700px",position:"relative",top:0,left:0}).find(".CU3ERcurrentSlice").css({width:parseFloat(o)+2+"px",height:parseFloat(q)+1+"px",overflow:"hidden",position:"relative","background-color":""!=jQuery(e[CU3ER[b].current]).css("backgroundColor")?jQuery(e[CU3ER[b].current]).css("backgroundColor"):"transparent"}).css(z).append(jQuery(e[CU3ER[b].current]).find("img").clone()).find("img").css({position:"absolute",left:CU3ER[b].isCameraFlat()&&!isNaN(parseInt(jQuery(e[CU3ER[b].current]).find("img").css("left")))?
-B+parseInt(jQuery(e[CU3ER[b].current]).find("img").css("left")):-B+"px",top:CU3ER[b].isCameraFlat()&&!isNaN(parseInt(jQuery(e[CU3ER[b].current]).find("img").css("top")))?-A+parseInt(jQuery(e[CU3ER[b].current]).find("img").css("top")):-A+"px"}),jQuery(m).find(".CU3ERnextSlice").css({width:parseFloat(o)+2+"px",height:parseFloat(q)+1+"px",overflow:"hidden",position:"absolute","background-color":""!=jQuery(e[CU3ER[b].nextSlide]).css("backgroundColor")?jQuery(e[CU3ER[b].nextSlide]).css("backgroundColor"):
"transparent"}).css(x).append(jQuery(e[CU3ER[b].nextSlide]).find("img").clone()).find("img").css({position:"absolute",left:CU3ER[b].isCameraFlat()&&!isNaN(parseInt(jQuery(e[CU3ER[b].nextSlide]).find("img").css("left")))?-B+parseInt(jQuery(e[CU3ER[b].nextSlide]).find("img").css("left")):-B+"px",top:CU3ER[b].isCameraFlat()&&!isNaN(parseInt(jQuery(e[CU3ER[b].nextSlide]).find("img").css("top")))?-A+parseInt(jQuery(e[CU3ER[b].nextSlide]).find("img").css("top")):-A+"px"})),jQuery(".CU3ERtransition",d).append(m),
jQuery(".CU3ERtransition-holder",d).css({overflow:"hidden"});else{var z=CU3ER[b].transition,E=CU3ER[b].slicesDirections[z.position3d][t],C=boxDepthHolder=parseInt(z.flipBoxDepth),x=CU3ER[b].transition.flipColor.replace("0x","#"),G=1;this.transition.transparent=!1;var F=jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.slide,CU3ER[b].jsonOriginal.slides.slide[this.current]),H=jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.slide,CU3ER[b].jsonOriginal.slides.slide[this.nextSlide]);if("undefined"!=
F.transparent&&"true"==F.transparent||"undefined"!=H.transparent&&"true"==H.transparent)x="transparent",v=u="hidden",G=1,this.transition.transparent=!0;"90"==z.flipAngle&&("left"==E||"right"==E)?(calcWidth=calcHeight=C=o,u="visible",calcTopBottom=Math.round(parseInt(q)/2+0.5),calcLeftRight=Math.round(parseInt(C)/2+0.5)):"90"==z.flipAngle&&("up"==E||"down"==E)?(calcWidth=calcHeight=C=q,u="visible",calcTopBottom=-Math.round(parseInt(q)/2+0.5),calcLeftRight=-Math.round(parseInt(q)/2+0.5)):(calcWidth=
calcHeight=C,calcTopBottom=-Math.round(parseInt(calcHeight)/2+0.5),calcLeftRight=-Math.round(parseInt(calcHeight)/2+0.5));m=jQuery("<div>").attr("class","CU3ERtrans").css({position:"absolute",left:y+"px",top:m+"px",width:parseInt(o)+1+"px",height:parseInt(q)+1+"px","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"hidden","-moz-animation-timing-function":"ease-in-out",
"z-index":1E3}).append('<div class="CU3ERsliceHolder"><div class="CU3ERcurrentSlice"></div><div class="CU3ERnextSlice"></div></div>');jQuery(m).find(".CU3ERsliceHolder").css({width:parseInt(o)+"px",height:parseInt(q)+"px","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"hidden","-moz-animation-timing-function":"ease-in-out","-webkit-transform":"translateZ(-"+
Math.round(C/2+0.5)+"px)","-moz-transform":"translateZ(-"+Math.round(C/2+0.5)+"px)",overflow:"visible",position:"relative"}).find(".CU3ERcurrentSlice").css({width:parseInt(o)+"px",height:parseInt(q)+"px","-webkit-transform":"translateZ("+Math.round(C/2+0.5)+"px)","-webkit-transform-style":"preserve-3d","-moz-transform":"translateZ("+Math.round(C/2+0.5)+"px)","-moz-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden","-moz-backface-visibility":"hidden",top:0,left:0,overflow:"hidden"}).append(jQuery(e[CU3ER[b].current]).find("img").clone()).find("img").replaceWith("<canvas>");
y="180"==z.flipAngle&&("up"==E||"down"==E)?"rotateY(180deg) translateZ("+Math.round(C/2+0.5)+"px) rotate(180deg)":"rotateY(180deg) translateZ("+Math.round(C/2+0.5)+"px)";jQuery(m).find(".CU3ERnextSlice").css({width:parseInt(o)+"px",height:parseInt(q)+"px","-webkit-transform-style":"preserve-3d","-webkit-transform":y,"-moz-transform-style":"preserve-3d","-moz-transform":y,"-webkit-backface-visibility":"hidden","-moz-backface-visibility":"hidden",overflow:"hidden",position:"absolute",top:0,left:0,opacity:G}).append(jQuery(e[CU3ER[b].nextSlide]).find("img").clone()).find("img").replaceWith("<canvas>");
jQuery(m).find(".CU3ERcurrentSlice").find("canvas").each(function(){var c=p[0];this.width=o;this.height=q;var e=this.getContext("2d"),d=B,f=A;try{e.drawImage(c,d,f,o,q,0,0,o,q)}catch(g){CU3ER[b].debug(d,f,o,q,g)}});jQuery(m).find(".CU3ERnextSlice").find("canvas").each(function(){var c=w[0];this.width=o;this.height=q;var e=this.getContext("2d"),d=B,f=A;try{e.drawImage(c,d,f,o,q,0,0,o,q)}catch(g){CU3ER[b].debug(d,f,o,q,g)}});jQuery(".CU3ERtransition",d).css({"-webkit-transform-style":"preserve-3d",
"-webkit-backface-visibility":"hidden","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"hidden"}).append(m);jQuery(".CU3ERtransition-holder",d).css({overflow:"visible","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"hidden"});jQuery(e[CU3ER[b].nextSlide]).css("display","none");jQuery(m).find(".CU3ERsliceHolder").append(jQuery("<div />").attr("class","CU3ERside CU3ERtopSide").css({width:o+
"px",height:calcHeight+"px",position:"absolute","background-color":x,visibility:u,"-webkit-transform-origin":"50% 50%","-moz-transform-origin":"50% 50%","-webkit-backface-visibility":v,"-moz-backface-visibility":v,top:0,left:0,"-webkit-transform":"rotateX(90deg) translateZ("+C/2+"px)","-moz-transform":"rotateX(90deg) translateZ("+C/2+"px)"}));jQuery(m).find(".CU3ERsliceHolder").append(jQuery("<div />").attr("class","CU3ERside CU3ERbottomSide").css({width:o+"px",height:C+"px",position:"absolute","background-color":x,
visibility:u,"-webkit-backface-visibility":v,"-moz-backface-visibility":v,bottom:0,left:0,"-webkit-transform":"rotateX(-90deg) translateZ("+C/2+"px)","-moz-transform":"rotateX(-90deg) translateZ("+C/2+"px)"}));jQuery(m).find(".CU3ERsliceHolder").append(jQuery("<div />").attr("class","CU3ERside CU3ERleftSide").css({width:calcWidth+"px",height:q+"px",position:"absolute","background-color":x,visibility:u,"-webkit-backface-visibility":v,"-moz-backface-visibility":v,top:0,left:0,"-webkit-transform":"rotateY(90deg) translateZ("+
calcLeftRight+"px)","-moz-transform":"rotateY(90deg) translateZ("+calcLeftRight+"px)"}));jQuery(m).find(".CU3ERsliceHolder").append(jQuery("<div />").attr("class","CU3ERside CU3ERrightSide").css({width:calcWidth+"px",height:q+"px",position:"absolute","background-color":x,visibility:u,"-webkit-backface-visibility":v,"-moz-backface-visibility":v,top:0,right:0,"-webkit-transform":"rotateY(-90deg) translateZ("+calcLeftRight+"px)","-moz-transform":"rotateY(-90deg) translateZ("+calcLeftRight+"px)"}));v=
"up";if(!0==h)switch(E){case "up":v="top";break;case "down":v="bottom";break;case "left":v="right";break;case "right":v="left"}else switch(E){case "up":v="bottom";break;case "down":v="top";break;case "left":v="left";break;case "right":v="right"}"90"==z.flipAngle&&(u=jQuery(".CU3ERnextSlice",jQuery(m)).css("background-color","transparent").find("canvas"),jQuery(".CU3ERnextSlice",jQuery(m)).parent().find(".CU3ER"+v+"Side").append(u),jQuery(".CU3ERnextSlice",jQuery(m)).css("background-color",x))}}setTimeout(function(){CU3ER[b].animationSlices(D,
h)},50)},animationSlices:function(b,d){var c=this.id,f=this.el,g=this.elements,e=jQuery(".CU3ERtrans",f),h={};h.rows=parseFloat(this.transition.rows);h.columns=parseFloat(this.transition.columns);h.flipOrder=parseFloat(this.transition.flipOrder);h.flipDuration=parseFloat(this.transition.flipDuration);h.flipDelay=parseFloat(this.transition.flipDelay);h.flipOrderFromCenter=this.transition.flipOrderFromCenter;var m=!1;if(!0==this.directionReverse){switch(parseInt(h.flipOrder)){case 0:h.flipOrder=180;
break;case 45:h.flipOrder=225;break;case 90:h.flipOrder=270;break;case 135:h.flipOrder=315;break;case 180:h.flipOrder=0;break;case 225:h.flipOrder=45;break;case 270:h.flipOrder=90;break;case 315:h.flipOrder=135}m=!0}var n=this.getOrder(h),k=n[0],n=n[1];h.flipRandomize=0;"undefined"!=typeof this.transition.flipDelayRandomize?(h.flipRandomize=parseFloat(this.transition.flipDelayRandomize),h.hasFlipRandomizeNew=!1):"undefined"!=typeof this.transition.flipRandomize&&(h.flipRandomize=parseFloat(this.transition.flipRandomize),
h.hasFlipRandomizeNew=!0);var n=this.getOrderRandomized(h,k,n),k=n[0],o=n[1],d=parseInt(h.rows)*parseInt(h.columns),q=this.is3D()?this.transition.type:"2D",h=function(d){setTimeout(function(){var g=b[d],h=CU3ER[c].easingValues[CU3ER[c].transition.flipEasing];if(q=="2D"){var k=CU3ER[c].transition.flipDuration*1E3;switch(g){case 1:jQuery(".CU3ERcurrentSlice",jQuery(e[d])).css({"z-index":500,display:"block"});jQuery(".CU3ERnextSlice",jQuery(e[d])).css({"z-index":501,display:"none"}).fadeIn(k,h);break;
case 3:if(jQuery.browser.msie){jQuery(".CU3ERnextSlice",jQuery(e[d])).animate({top:0},k-30,h);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).animate({top:"-"+jQuery(".CU3ERcurrentSlice",e[d]).height()+"px"},k,h)}else{jQuery(".CU3ERnextSlice",jQuery(e[d])).animate({top:jQuery(".CU3ERnextSlice",e[d]).height()+"px"},k-30,h);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).animate({"margin-top":"-"+jQuery(".CU3ERcurrentSlice",e[d]).height()+"px"},k,h)}break;case 2:if(jQuery.browser.msie){jQuery(".CU3ERnextSlice",
jQuery(e[d])).animate({top:0},k-30,h);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).animate({top:jQuery(".CU3ERcurrentSlice",e[d]).height()+"px"},k,h)}else{jQuery(".CU3ERnextSlice",jQuery(e[d])).animate({"margin-top":jQuery(".CU3ERnextSlice",jQuery(e[d])).css("margin-top")},k-30,h);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).animate({"margin-top":jQuery(".CU3ERcurrentSlice",e[d]).height()+"px"},k,h)}break;case 4:jQuery(".CU3ERnextSlice",jQuery(e[d])).animate({"margin-left":"0px"},k-30,h);jQuery(".CU3ERcurrentSlice",
jQuery(e[d])).animate({"margin-left":-jQuery(".CU3ERcurrentSlice",e[d]).width()+"px"},k,h);break;case 5:jQuery(".CU3ERnextSlice",jQuery(e[d])).animate({"margin-left":"0px"},k-30,h);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).animate({"margin-left":jQuery(".CU3ERcurrentSlice",e[d]).width()+"px"},k,h);break;default:jQuery(".CU3ERcurrentSlice",jQuery(e[d])).animate({"margin-top":"-"+jQuery(".CU3ERcurrentSlice",e[d]).height()+"px"},k,h);jQuery(".CU3ERnextSlice",jQuery(e[d])).animate({"margin-top":0},k,
h)}}else{jQuery(".CU3ERbox-holder",f).css("display","none");k=CU3ER[c].transition.flipDuration;g=m==true?"_reverse":"";jQuery(e[d]).css({"-moz-animation-fill-mode":"forwards","-moz-animation-name":"translateSliceHolder"+CU3ER[c].transition.position3d,"-moz-animation-duration":parseFloat(k)-0.05+"s","-moz-animation-iteration-count":1,"-moz-animation-delay":0,"-webkit-animation-fill-mode":"forwards","-webkit-animation-name":"translateSliceHolder"+CU3ER[c].transition.position3d,"-webkit-animation-duration":k+
"s","-webkit-animation-iteration-count":1,"-webkit-animation-delay":0});jQuery(".CU3ERsliceHolder",jQuery(e[d])).css({"-webkit-animation-fill-mode":"forwards","-webkit-animation-name":"sliceAnimation"+CU3ER[c].transition.position3d+"_"+d+g,"-webkit-animation-duration":k+"s","-webkit-animation-iteration-count":1,"-webkit-animation-delay":0,"-moz-animation-fill-mode":"forwards","-moz-animation-name":"sliceAnimation"+CU3ER[c].transition.position3d+"_"+d+g,"-moz-animation-duration":k+"s","-moz-animation-iteration-count":1,
"-moz-animation-delay":0})}},o[d])};for(i=0;i<d;i++)h(i);jQuery(".CU3ERslides-holder",f).css("display","none");jQuery(g[CU3ER[c].current]).css("display","none");jQuery(g[CU3ER[c].nextSlide]).css("display","block");setTimeout(function(){q=="3D"&&jQuery(CU3ER[c].elements[CU3ER[c].nextSlide]).css({display:"block","-webkit-transform":"translateZ(1px)","-moz-transform":"translateZ(1px)"});CU3ER[c].onTransitionComplete()},1E3*(k+parseFloat(CU3ER[c].transition.flipDuration)+0.05));try{var t="undefined"!=
typeof CU3ER[c].json.slides.slide[CU3ER[c].current].transparent&&"true"==CU3ER[c].json.slides.slide[CU3ER[c].current].transparent||"undefined"!=typeof CU3ER[c].json.slides.slide[CU3ER[c].nextSlide].transparent&&"true"==CU3ER[c].json.slides.slide[CU3ER[c].nextSlide].transparent?!0:!1}catch(r){t=!1}!t&&CU3ER[c].is3D()&&(CU3ER[c].timerShader=setTimeout(CU3ER[c].updateShader,50,CU3ER[c]))},updateShader:function(b){for(var d=jQuery(".CU3ERsliceHolder",this.el),c=b.transition.flipColor.split("0x").join(""),
f=parseInt(c.substr(0,2),16),g=parseInt(c.substr(2,2),16),e=parseInt(c.substr(4,2),16),c=0;c<d.length;c++)jQuery("div",d[c]).each(function(){if(jQuery(this).hasClass("CU3ERside")){var b=jQuery(this).parent().parent().css("-webkit-transform");if(-1!=b.indexOf("matrix3d")){var b=b.split(","),c=Math.floor(parseInt(b[14])/15),b=0<f+c?Math.min(255,f+c):Math.max(0,f+c),d=0<g+c?Math.min(255,g+c):Math.max(0,g+c),c=0<e+c?Math.min(255,e+c):Math.max(0,e+c);jQuery(this).css("backgroundColor","rgb("+b+","+d+","+
c+")")}}});b.timerShader=setTimeout(b.updateShader,50,b)},onTransitionComplete:function(){var b=this.id,d=this.el;clearTimeout(CU3ER[b].timerShader);var c=this.elements;jQuery.browser.msie||jQuery(".CU3ERbackground",d).css("display","block");this.current=this.nextSlide;this.currSlideNo=parseInt(this.current)+1;this.autoscrollThumbs&&this.repositionThumbs();this.onSlide(this.currSlideNo);defaults=jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.slide,CU3ER[b].jsonOriginal.slides.slide[CU3ER[b].current]);
defaults.time=1E3*parseFloat(defaults.time);this.sleepDuration=defaults.time;this.is3D()&&CU3ER[b].createSlideBoxDepth(this.transition);jQuery(".CU3ERslides-holder",d).css("display","block");jQuery(".CU3ERbox-holder",d)&&jQuery(".CU3ERbox-holder",d).css("display","block");setTimeout(function(){jQuery(".CU3ERtransition-holder",d).css("display","none");jQuery(".CU3ERtransition",d).remove();CU3ER[b].inTransition=!1},50);jQuery.browser.msie&&(CU3ER[b].inTransition=!1);jQuery(".CU3ERlayer",d).css({display:"none"});
++CU3ER[b].currentLoop;CU3ER[b].destroyDescription();if("undefined"!=typeof CU3ER[b].json.description){var f=1==CU3ER[b].json.slides.slide.length?0:CU3ER[d.attr("id")].current;if("undefined"!=typeof CU3ER[d.attr("id")].json.slides.slide[f]&&"undefined"!=typeof CU3ER[b].json.slides.slide[f].description&&("undefined"!=typeof CU3ER[b].json.slides.slide[f].description.heading&&""!=CU3ER[b].json.slides.slide[f].description.heading||"undefined"!=typeof CU3ER[b].json.slides.slide[f].description.paragraph&&
""!=CU3ER[b].json.slides.slide[f].description.paragraph))f="undefined"!=typeof CU3ER[b].jsonOriginal.defaults.slide.description?jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.slide.description,CU3ER[b].json.slides.slide[f].description):CU3ER[b].json.slides.slide[f].description,CU3ER[b].populateDescription(f),jQuery(".CU3ERdescription",d).css("display","block")}2==c.length?jQuery(c[0]).trigger("endTransition"):jQuery(c[CU3ER[b].current]).trigger("endTransition");if(!1==CU3ER[b].mOver&&!0==CU3ER[b].paused&&
!0==CU3ER[b].rollOverPause)CU3ER[b].continueTimers();else if(!0==CU3ER[b].mOver&&!1==CU3ER[b].paused&&!0==CU3ER[b].rollOverPause)CU3ER[b].stopTimers();else if(!1==this.paused&&(this.time=null,this.pauseStartTimer=(new Date).getTime(),"undefined"!=typeof CU3ER[b].json.settings.auto_play&&"true"==CU3ER[b].json.settings.auto_play&&(0==CU3ER[b].loop||CU3ER[b].currentLoop<=CU3ER[b].loop*CU3ER[b].slidesTotal))){if("undefined"!=typeof CU3ER[b].json.controls.auto_play_indicator&&(c={type:"autoPlay",width:CU3ER[b].json.controls.auto_play_indicator.width,
height:CU3ER[b].json.controls.auto_play_indicator.height,loaderTweenShowTint:CU3ER[b].json.controls.auto_play_indicator.loader.tweenShow.tint,loaderTreenOverTint:CU3ER[b].json.controls.auto_play_indicator.loader.tweenOver.tint,loaderTweenShowAlpha:CU3ER[b].json.controls.auto_play_indicator.loader.tweenShow.alpha,loaderTweenOverAlpha:CU3ER[b].json.controls.auto_play_indicator.loader.tweenOver.alpha,bgTweenShowAlpha:CU3ER[b].json.controls.auto_play_indicator.background.tweenShow.alpha,bgTweenOverAlpha:CU3ER[b].json.controls.auto_play_indicator.background.tweenOver.alpha,
bgTweenShowTint:CU3ER[b].json.controls.auto_play_indicator.background.tweenShow.tint,bgTweenOverTint:CU3ER[b].json.controls.auto_play_indicator.background.tweenOver.tint,image:null,posX:CU3ER[b].json.controls.auto_play_indicator.x,posY:CU3ER[b].json.controls.auto_play_indicator.y,align_pos:CU3ER[b].json.controls.auto_play_indicator.align_pos,align_to:"stage"==CU3ER[b].json.controls.auto_play_indicator.align_to?"stage":"slides",padding:CU3ER[b].json.controls.auto_play_indicator.background.padding,
shape:CU3ER[b].json.controls.auto_play_indicator.type,radius:CU3ER[b].json.controls.auto_play_indicator.radius},0==CU3ER[b].loop||CU3ER[b].currentLoop<=CU3ER[b].loop*CU3ER[b].slidesTotal))jQuery(".CU3ERindicator",d).stop().remove(),CU3ER[b].drawProgressBar(c),jQuery(".CU3ERprogress",d).animate({width:"100%"},defaults.time,function(){jQuery(".CU3ERprogress",d).css("width","0%")}),jQuery(".CU3ERindicator",d).bind("click",function(){CU3ER[b].pauseType=2;CU3ER[b].pause()});CU3ER[b].tempTimeout[CU3ER[b].current]=
setTimeout(function(){CU3ER[b].next()},defaults.time)}},isCameraFlat:function(){var b=!0;"undefined"!=typeof this.json.settings.camera&&("undefined"!=typeof this.json.settings.camera.x&&0!=this.json.settings.camera.x&&(b=!1),"undefined"!=typeof this.json.settings.camera.y&&0!=this.json.settings.camera.y&&(b=!1),"undefined"!=typeof this.json.settings.camera.z&&0!=this.json.settings.camera.z&&(b=!1),"undefined"!=typeof this.json.settings.camera.angleX&&0!=this.json.settings.camera.angleX&&(b=!1),"undefined"!=
typeof this.json.settings.camera.angleY&&0!=this.json.settings.camera.angleY&&(b=!1),"undefined"!=typeof this.json.settings.camera.angleZ&&0!=this.json.settings.camera.angleZ&&(b=!1),"undefined"!=typeof this.json.settings.camera.lens&&8!=this.json.settings.camera.lens&&(b=!1));!0==this.force_simple&&(b=!1);return b},setDirections:function(b,d,c){var b=parseInt(b.rows)*parseInt(b.columns),f=[];if(6==d)for(var g=0;g<b;g++)d=jQuery.shuffle(c),f[g]=d[0];else for(g=0;g<b;g++)f[g]=d;return f},continueTimers:function(){var b=
this.id,d=this.el;this.paused=!1;this.pauseType=0;var c={time:5},c=jQuery.extend(!0,c,CU3ER[b].json.defaults.slide,CU3ER[b].json.slides[this.current]);c.time=1E3*parseInt(c.time);if(0<jQuery(".CU3ERindicator").length)if(this.supportCanvas()&&"circular"==this.circularPBOptions.shape)this.stopFlag=!1,this.startCircularProgressbar(this.circularPBOptions,!0);else if(0<jQuery(".CU3ERprogress").length){if(jQuery.browser.msie)var f=100,g=jQuery(".CU3ERprogress",d).css("width"),f=100-parseInt(g);else f=jQuery(".CU3ERprogress",
d).css("maxWidth"),g=jQuery(".CU3ERprogress",d).width(),f=100-100*parseInt(g)/parseInt(f);c=parseInt(f)*c.time/100;jQuery(".CU3ERprogress",d).animate({width:"100%"},c,function(){jQuery(".CU3ERprogress",d).css("width","0%");CU3ER[b].skipTo(CU3ER[b].calculateNext(CU3ER[b].current),!0,!0)})}else null!=this.time&&0<this.time&&(c.time=this.time),this.pauseStartTimer=(new Date).getTime(),CU3ER[b].tempTimeout[CU3ER[b].current]=setTimeout(function(){CU3ER[b].skipTo(CU3ER[b].calculateNext(CU3ER[b].current),
true,true)},c.time);else null!=this.time&&0<this.time&&(c.time=this.time),this.pauseStartTimer=(new Date).getTime(),CU3ER[b].tempTimeout[CU3ER[b].current]=setTimeout(function(){CU3ER[b].skipTo(CU3ER[b].calculateNext(CU3ER[b].current),true,true)},c.time)},stopTimers:function(){var b=this.id,d=this.el;this.paused=!0;0<jQuery(".CU3ERindicator").length?this.supportCanvas()&&"circular"==this.circularPBOptions.shape?(clearTimeout(this.circularPBOptions.tempTimeout),this.stopCircularProgressbar()):jQuery(".CU3ERprogress",
d).stop():(defaults=jQuery.extend(!0,defaults,CU3ER[b].json.defaults.slide,CU3ER[b].json.slides[this.current]),null!=this.time?(d=this.time-((new Date).getTime()-this.pauseStartTimer),this.time=0<d?d:defaults.time):this.time=defaults.time-((new Date).getTime()-this.pauseStartTimer),clearTimeout(this.tempTimeout[CU3ER[b].current]));this.clearTimeouts()},handleAutoHide:function(b,d,c,f){var g=this.id,e=this.el;CU3ER[g].debug("attaching auto hide behavior");var h=this.elements,m=null,n=null;"undefined"!=
typeof b&&("undefined"!=typeof b.next_button&&"true"==b.next_button.hide_on_transition)&&jQuery(h).bind("endTransition",function(){clearTimeout(null);jQuery(".CU3ERbuttonNext",e).fadeIn("fast")}).bind("startTransition",function(){jQuery(".CU3ERbuttonNext",e).fadeOut("fast")});"undefined"!=typeof b&&("undefined"!=typeof b.prev_button&&"true"==b.prev_button.hide_on_transition)&&jQuery(h).bind("endTransition",function(){clearTimeout(null);jQuery(".CU3ERbuttonPrev",e).fadeIn("fast")}).bind("startTransition",
function(){jQuery(".CU3ERbuttonPrev",e).fadeOut("fast")});"undefined"!=typeof d&&"true"==d.hide_on_transition&&jQuery(h).bind("endTransition",function(){jQuery(".CU3ERindicator",e).fadeIn("fast")}).bind("startTransition",function(){jQuery(".CU3ERindicator",e).fadeOut("fast")});"undefined"!=typeof c&&("true"==c.hide_on_transition||"true"==c.bake_on_transition)&&jQuery(h).bind("endTransition",function(){""!=jQuery(".CU3ERDescriptionLinkHolder",e).html()&&null!=jQuery(".CU3ERDescriptionLinkHolder",e).html()&&
(clearTimeout(m),jQuery(".CU3ERdescription",e).fadeIn("fast"))}).bind("startTransition",function(){CU3ER[g].destroyDescription();jQuery(".CU3ERdescription",e).fadeOut("fast")});"undefined"!=typeof f&&"true"==f.hide_on_transition&&jQuery(h).bind("endTransition",function(){clearTimeout(n);jQuery(".CU3ERthumbs",e).fadeIn("fast")}).bind("startTransition",function(){jQuery(".CU3ERthumbs",e).fadeOut("fast")});if(!this.isTouch()&&("undefined"!=typeof b&&("undefined"!=typeof b.next_button&&"true"==b.next_button.auto_hide.text)&&
(jQuery(e).bind("mouseover",function(){clearTimeout(null);jQuery(".CU3ERbuttonNext",e).fadeIn("fast")}).bind("mouseout",function(){bntNext=setTimeout(function(){jQuery(".CU3ERbuttonNext",e).fadeOut("fast")},1E3*parseInt(b.next_button.auto_hide.time))}),jQuery(h).bind("endTransition",function(){bntNext=setTimeout(function(){jQuery(".CU3ERbuttonNext",e).fadeOut("fast")},1E3*parseInt(b.next_button.auto_hide.time))})),"undefined"!=typeof b&&("undefined"!=typeof b.prev_button&&"true"==b.prev_button.auto_hide.text)&&
(jQuery(e).bind("mouseover",function(){clearTimeout(null);jQuery(".CU3ERbuttonPrev",e).fadeIn("fast")}).bind("mouseout",function(){bntPrev=setTimeout(function(){jQuery(".CU3ERbuttonPrev",e).fadeOut("fast")},parseInt(b.prev_button.auto_hide.time)*1E3)}),jQuery(h).bind("endTransition",function(){bntPrev=setTimeout(function(){jQuery(".CU3ERbuttonPrev",e).fadeOut("fast")},parseInt(b.prev_button.auto_hide.time)*1E3)})),"undefined"!=typeof f&&"true"==f.auto_hide&&(jQuery(e).bind("mouseover",function(){clearTimeout(n);
jQuery(".CU3ERthumbs",e).fadeIn("fast")}).bind("mouseout",function(){n=setTimeout(function(){jQuery(".CU3ERthumbs",e).fadeOut("fast")},parseInt(f.auto_hide.time)*1E3)}),jQuery(h).bind("endTransition",function(){n=setTimeout(function(){jQuery(".CU3ERthumbs",e).fadeOut("fast")},parseInt(f.auto_hide.time)*1E3)})),"undefined"!=typeof c&&"true"==c.auto_hide))jQuery(e).bind("mouseover",function(){if(jQuery(".CU3ERDescriptionLinkHolder",e).html()!=""&&jQuery(".CU3ERDescriptionLinkHolder",e).html()!=null){clearTimeout(m);
jQuery(".CU3ERdescription",e).fadeIn("fast")}}).bind("mouseout",function(){clearTimeout(m);m=setTimeout(function(){jQuery(".CU3ERdescription",e).fadeOut("fast")},parseInt(c.auto_hide.time)*1E3)}),jQuery(h).bind("endTransition",function(){clearTimeout(m);m=setTimeout(function(){jQuery(".CU3ERdescription",e).fadeOut("fast")},parseInt(c.auto_hide.time)*1E3)})},calculateNext:function(b){return this.elements.length-1==b?0:++b},calculatePrevious:function(b){var d=this.elements;return 0==b?d.length-1:--b},
switchThumbnailClass:function(b){var d=jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb a",this.el);d.parent().removeClass("current");jQuery(d[b]).parent().addClass("current").trigger("classChanged")},populateDescription:function(b){var d=this.id,c=this.el,f=CU3ER[d].json.description.width+"px",g=CU3ER[d].json.description.height+"px";jQuery(".CU3ERDescriptionText",c).append('<div class="CU3ERDescriptionLinkHolder"></div>').find(".CU3ERDescriptionLinkHolder").css({width:f,height:g});if("undefined"!=
typeof b.heading&&""!=b.heading){headingCSS={};"undefined"!=typeof CU3ER[d].json.description.heading.margin?(margins=CU3ER[d].json.description.heading.margin.split(","),headingCSS.marginTop=parseInt(margins[0])+"px",headingCSS.marginRight=parseInt(margins[1])+"px",headingCSS.marginBottom=parseInt(margins[2])+"px",headingCSS.marginLeft=parseInt(margins[3])+"px"):(headingCSS.marginTop="5px",headingCSS.marginRight="5px",headingCSS.marginBottom="5px",headingCSS.marginLeft="5px");headingCSS.position="relative";
headingCSS.fontFamily="undefined"!=typeof CU3ER[d].json.description.heading.font?'"'+decodeURI(CU3ER[d].json.description.heading.font)+'"':"Georgia";headingCSS.fontWeight="true"==CU3ER[d].json.description.heading.text_bold?"bold":"normal";headingCSS.fontStyle="true"==CU3ER[d].json.description.heading.text_italic?"italic":"normal";headingCSS.textAlign="undefined"!=typeof CU3ER[d].json.description.heading.text_align?CU3ER[d].json.description.heading.text_align:"left";headingCSS.opacity="undefined"!=
typeof CU3ER[d].json.description.heading.tweenShow.opacity?CU3ER[d].json.description.heading.tweenShow.opacity:"1";headingCSS.lineHeight="undefined"!=typeof CU3ER[d].json.description.heading.text_leading&&0<CU3ER[d].json.description.heading.text_leading?parseInt(CU3ER[d].json.description.heading.text_size)+parseInt(CU3ER[d].json.description.heading.text_leading)+"px":CU3ER[d].json.description.heading.text_size+"px";"undefined"!=typeof CU3ER[d].json.description.heading.text_letterspacing&&0<CU3ER[d].json.description.heading.text_letterspacing&&
(headingCSS.letterSpacing=CU3ER[d].json.description.heading.text_letterspacing+"px");if("undefined"!=typeof b.link)var e="undefined"!=typeof b.link.text?b.link.text:b.link;if("undefined"!=typeof b.link&&"string"==typeof e){var h="undefined"==typeof b.link.target?"undefined"==typeof CU3ER[d].jsonOriginal.defaults.slide.description.link.target?"_self":CU3ER[d].jsonOriginal.defaults.slide.description.link.target:b.link.target;jQuery(".CU3ERDescriptionLinkHolder",c).append('<h2><a href="'+e+'" target="'+
h+'">'+b.heading.replace("\\'","'")+"</a></h2>").find("h2").css({fontSize:CU3ER[d].json.description.heading.text_size+"px",color:CU3ER[d].json.description.heading.tweenShow.tint.replace("0x","#")}).css(headingCSS).find("a").css({fontSize:CU3ER[d].json.description.heading.text_size+"px",color:CU3ER[d].json.description.heading.tweenShow.tint.replace("0x","#"),"line-height":headingCSS.lineHeight,"font-family":headingCSS.fontFamily,opacity:headingCSS.opacity})}else jQuery(".CU3ERDescriptionLinkHolder",
c).append("<h2>"+b.heading.replace("\\'","'")+"</h2>").find("h2").css({fontSize:CU3ER[d].json.description.heading.text_size+"px",color:CU3ER[d].json.description.heading.tweenShow.tint.replace("0x","#")}).css(headingCSS)}"undefined"!=typeof b.paragraph&&""!=b.paragraph&&((descCSS={},"undefined"!=typeof CU3ER[d].json.description.paragraph.margin?(margins=CU3ER[d].json.description.paragraph.margin.split(","),descCSS.marginTop=parseInt(margins[0])+"px",descCSS.marginRight=parseInt(margins[1])+"px",descCSS.marginBottom=
parseInt(margins[2])+"px",descCSS.marginLeft=parseInt(margins[3])+"px"):(descCSS.marginTop="0px",descCSS.marginRight="5px",descCSS.marginBottom="5px",descCSS.marginLeft="5px"),descCSS.position="relative",descCSS.fontFamily="undefined"!=typeof CU3ER[d].json.description.paragraph.font?'"'+decodeURI(CU3ER[d].json.description.paragraph.font)+'"':"Arial",descCSS.fontWeight="true"==CU3ER[d].json.description.paragraph.text_bold?"bold":"normal",descCSS.fontStyle="true"==CU3ER[d].json.description.paragraph.text_italic?
"italic":"normal",descCSS.textAlign="undefined"!=typeof CU3ER[d].json.description.paragraph.text_align?CU3ER[d].json.description.paragraph.text_align:"left",descCSS.opacity="undefined"!=typeof CU3ER[d].json.description.paragraph.tweenShow.opacity?CU3ER[d].json.description.paragraph.tweenShow.opacity:"1",descCSS.lineHeight="undefined"!=typeof CU3ER[d].json.description.paragraph.text_leading&&0<CU3ER[d].json.description.paragraph.text_leading?parseInt(CU3ER[d].json.description.paragraph.text_size)+
parseInt(CU3ER[d].json.description.paragraph.text_leading)+"px":CU3ER[d].json.description.paragraph.text_size+"px","undefined"!=typeof CU3ER[d].json.description.paragraph.text_letterspacing&&0<CU3ER[d].json.description.paragraph.text_letterspacing&&(descCSS.letterSpacing=CU3ER[d].json.description.paragraph.text_letterspacing+"px"),"undefined"!=typeof b.link&&(e="undefined"!=typeof b.link.text?b.link.text:b.link),"undefined"!=typeof b.link&&"string"==typeof e)?(h="undefined"==typeof b.link.target?
"undefined"==typeof CU3ER[d].jsonOriginal.defaults.slide.description.link.target?"_self":CU3ER[d].jsonOriginal.defaults.slide.description.link.target:b.link.target,jQuery(".CU3ERDescriptionLinkHolder",c).append('<p><a href="'+e+'" target="'+h+'">'+b.paragraph.replace("\\'","'")+"</a></p>").find("p").css({fontSize:CU3ER[d].json.description.paragraph.text_size+"px",color:CU3ER[d].json.description.paragraph.tweenShow.tint.replace("0x","#")}).css(descCSS).find("a").css({fontSize:CU3ER[d].json.description.paragraph.text_size+
"px",color:CU3ER[d].json.description.paragraph.tweenShow.tint.replace("0x","#"),"line-height":descCSS.lineHeight,"font-family":descCSS.fontFamily,opacity:descCSS.opacity})):jQuery(".CU3ERDescriptionLinkHolder",c).append("<p>"+b.paragraph.replace("\\'","'")+"</p>").find("p").css({fontSize:CU3ER[d].json.description.paragraph.text_size+"px",color:CU3ER[d].json.description.paragraph.tweenShow.tint.replace("0x","#")}).css(descCSS));"undefined"!=typeof b.link&&(e="undefined"!=typeof b.link.text?b.link.text:
b.link);"undefined"!=typeof b.link&&"string"==typeof e&&jQuery(".CU3ERDescriptionLinkHolder",c).wrap('<a href="'+e+'" target="'+h+'" />');jQuery(".CU3ERdescription",c).find("a").css({"text-decoration":"none"});"undefined"!=typeof CU3ER[d].json.description.heading&&jQuery(".CU3ERdescription",c).find("h2").css({opacity:CU3ER[d].json.description.heading.tweenShow.alpha,color:CU3ER[d].json.description.heading.tweenShow.tint.replace("0x","#")}).find("a").css({opacity:CU3ER[d].json.description.heading.tweenShow.alpha,
color:CU3ER[d].json.description.heading.tweenShow.tint.replace("0x","#")}).bind("mouseover",function(){jQuery(this).css({"background-color":"transparent"})});"undefined"!=typeof CU3ER[d].json.description.paragraph&&jQuery(".CU3ERdescription",c).find("p").css({opacity:CU3ER[d].json.description.paragraph.tweenShow.alpha,color:CU3ER[d].json.description.paragraph.tweenShow.tint.replace("0x","#")}).find("a").css({opacity:CU3ER[d].json.description.paragraph.tweenShow.alpha,color:CU3ER[d].json.description.paragraph.tweenShow.tint.replace("0x",
"#")}).bind("mouseover",function(){jQuery(this).css({"background-color":"transparent"})})},destroyDescription:function(){jQuery(".CU3ERDescriptionText",this.el).empty().parent().css("display","none")},checkCanvas:function(){var b=document.createElement("canvas");this.canvasSupported=b.getContext&&b.getContext("2d")},supportCanvas:function(){return jQuery.browser.opera||jQuery.browser.msie?!1:this.canvasSupported},inArray:function(b){for(var d={},c=0;c<b.length;c++)d[b[c]]="";return d},getOrder:function(b){b.flipOrder=
parseInt(b.flipOrder);b.rows=parseInt(b.rows);b.columns=parseInt(b.columns);b.flipDelay=parseFloat(b.flipDelay);var d=[],c=[],f;for(i=0;i<b.rows;i++)for(j=0;j<b.columns;j++){if("false"==b.flipOrderFromCenter)switch(b.flipOrder){case 0:f=j;break;case 45:f=b.rows-1-i+j;break;case 90:f=b.rows-1-i;break;case 135:f=b.rows-1-i+b.columns-1-j;break;case 180:f=b.columns-1-j;break;case 225:f=b.columns-1-j+i;break;case 270:f=i;break;case 315:f=i+j}else switch(b.flipOrder){case 0:case 180:Math.abs(Math.floor((b.columns-
1)/2-j));f=Math.abs(Math.floor((b.columns-1)/2-j));break;case 90:case 270:Math.abs(Math.floor((b.rows-1)/2-i));f=Math.abs(Math.floor((b.rows-1)/2-i));break;case 135:case 315:Math.abs(i+j-Math.floor((b.rows+b.columns-2)/2));f=Math.abs(i+j-Math.floor((b.rows+b.columns-2)/2));break;case 45:case 225:Math.abs(i+(b.columns-j)-Math.floor((b.rows+b.columns-2)/2)),f=Math.abs(i+(b.columns-j)-Math.floor((b.rows+b.columns-2)/2))}d[j+i*b.columns]=f;c[j+i*b.columns]=-1}return[c,d]},getOrderRandomized:function(b,
d,c){var f,g=[],e=0;for(i=0;i<b.rows;i++)for(j=0;j<b.columns;j++){if(b.hasFlipRandomizeNew){if(-1==d[j+i*b.columns]){f=Math.max(b.columns-j,j);var h=Math.round(j+f*(2*Math.random()*b.flipRandomize-b.flipRandomize)),h=Math.max(0,Math.min(b.columns-1,h));f=Math.max(b.rows-i,i);var m=Math.round(i+f*(2*Math.random()*b.flipRandomize-b.flipRandomize)),m=Math.max(0,Math.min(b.rows-1,m));f=c[h+m*b.columns];d[h+m*b.columns]=j+i*b.columns}else f=c[d[j+i*b.columns]];h=Math.min(1,2*b.flipRandomize)*Math.max(0,
2*b.flipDelay*Math.random()-b.flipDelay);flipDelay=f*b.flipDelay+h}else f=c[j+i*b.columns],flipDelay=f*b.flipDelay*(1-b.flipRandomize);g[j+i*b.columns]=1E3*flipDelay;flipDelay>e&&(e=flipDelay)}return[e,g]},getDelayOrder:function(b){b.flipOrder=parseInt(b.flipOrder);b.rows=parseInt(b.rows);b.columns=parseInt(b.columns);b.flipDelay=parseFloat(b.flipDelay);var d=0,c=[];for(i=0;i<b.rows;i++)for(j=0;j<b.columns;j++)if(d=j+i*b.columns,"false"==b.flipOrderFromCenter)switch(b.flipOrder){case 0:c[d]=j;break;
case 45:c[d]=b.rows-1-i+j;break;case 90:c[d]=b.rows-1-i;break;case 135:c[d]=b.rows-1-i+b.columns-1-j;break;case 180:c[d]=b.columns-1-j;break;case 225:c[d]=b.columns-1-j+i;break;case 270:c[d]=i;break;case 315:c[d]=i+j}else switch(b.flipOrder){case 0:case 180:c[d]=Math.abs(Math.floor((b.columns-1)/2-j));break;case 90:case 270:c[d]=Math.abs(Math.floor((b.rows-1)/2-i));break;case 135:case 315:c[d]=Math.abs(i+j-Math.floor((b.rows+b.columns-2)/2));break;case 45:case 225:c[d]=Math.abs(i+(b.columns-j)-Math.floor((b.rows+
b.columns-2)/2))}return c},pause:function(){this.isFlash?(this.registerFlash(),this.swf.pauseCU3ER()):!0===this.paused?this.inTransition||this.continueTimers():this.inTransition||this.stopTimers()},is3D:function(){return this.disable3d?!1:this.support3d},checkTouch:function(){var b=document.createElement("div"),d=document.documentElement,c=document.head||document.getElementsByTagName("head")[0],f=!1;b.setAttribute("ongesturestart","return;");if("function"==typeof b.ongesturestart)this.touchable=!0;
else{var b=document.createElement("style"),g=document.createElement("div");b.textContent="@media (touch-enabled), (-webkit-touch-enabled), (-moz-touch-enabled), (-o-touch-enabled), (-ms-touch-enabled), (-khtml-touch-enabled), (cu3er3d){#cu3ertouch{height:3px}}";c.appendChild(b);g.id="cu3ertouch";d.appendChild(g);f=3===g.offsetHeight;b.parentNode.removeChild(b);g.parentNode.removeChild(g);this.touchable="ontouchstart"in window||f}},isTouch:function(){return this.touchable},debug:function(){!0==this.debugMode&&
console.log(arguments)}};
jQuery.fn.borderRadius=function(b){"undefined"==typeof b&&(b="0, 0, 0, 0");b=b.split(",");return this.each(function(){jQuery(this).css({"-moz-border-radius-topleft":b[0]+"px","-moz-border-radius-topright":b[1]+"px","-moz-border-radius-bottomright":b[2]+"px","-moz-border-radius-bottomleft":b[3]+"px","-webkit-border-top-left-radius":b[0]+"px","-webkit-border-top-right-radius":b[1]+"px","-webkit-border-bottom-right-radius":b[2]+"px","-webkit-border-bottom-left-radius":b[3]+"px","border-top-left-radius":b[0]+
"px","border-top-right-radius":b[1]+"px","border-bottom-right-radius":b[2]+"px","border-bottom-left-radius":b[3]+"px"})})};jQuery.shuffle=function(b){for(var d,c,f=b.length;f;d=parseInt(Math.random()*f),c=b[--f],b[f]=b[d],b[d]=c);return b};
